Repository navigation
chore: sync chore-v2 branch with main #397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
f2104f6
93f742e
e283710
04e2098
80859c6
0e7d9aa
7044704
0074707
85f29de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -135,7 +135,7 @@ setup: nix-setup ## Basic Nix setup (alias for nix-setup). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| setup-dev: nix-setup git-submodule-sync shell-install ## Set up local development environment (Nix + submodules + shell). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .PHONY: switch | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| switch: nix-switch ## Apply Nix configuration (alias for nix-switch). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| switch: nix-switch launchctl ## Apply Nix configuration and restart launchd agents. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .PHONY: update | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| update: nix-update shell-update neovim-update ## Update Nix flake and configurations. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -567,6 +567,47 @@ lua-check-hammerspoon-dev: ## Run the Hammerspoon Lua check inside the Nix dev s | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "🧪 Running Hammerspoon Lua check inside the Nix dev shell..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @DEVENV_ROOT=$(CURDIR) $(NIX_ALLOW_UNFREE) $(NIX_EXEC) develop $(NIX_FLAGS) .# --command $(MAKE) lua-check-hammerspoon | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ##@ Launchd Services | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .PHONY: launchctl | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| launchctl: launchctl-brew-upgrader launchctl-cliproxyapi launchctl-code-syncer launchctl-dotfiles-updater launchctl-neverssl-keepalive launchctl-ollama ## Restart all launchd agents. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .PHONY: launchctl-brew-upgrader | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| launchctl-brew-upgrader: ## Restart brew-upgrader launchd agent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "🔄 Restarting brew-upgrader..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.brew-upgrader || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "✅ brew-upgrader restarted" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .PHONY: launchctl-cliproxyapi | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| launchctl-cliproxyapi: ## Restart cliproxyapi launchd agent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "🔄 Restarting cliproxyapi..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.cliproxyapi || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "✅ cliproxyapi restarted" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .PHONY: launchctl-code-syncer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| launchctl-code-syncer: ## Restart code-syncer launchd agent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "🔄 Restarting code-syncer..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.code-syncer || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "✅ code-syncer restarted" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .PHONY: launchctl-dotfiles-updater | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| launchctl-dotfiles-updater: ## Restart dotfiles-updater launchd agent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "🔄 Restarting dotfiles-updater..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.dotfiles-updater || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "✅ dotfiles-updater restarted" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .PHONY: launchctl-neverssl-keepalive | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| launchctl-neverssl-keepalive: ## Restart neverssl-keepalive launchd agent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "🔄 Restarting neverssl-keepalive..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.neverssl-keepalive || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "✅ neverssl-keepalive restarted" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .PHONY: launchctl-ollama | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| launchctl-ollama: ## Restart ollama launchd agent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "🔄 Restarting ollama..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.ollama || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "✅ ollama restarted" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+577
to
+609
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @echo "🔄 Restarting brew-upgrader..." | |
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.brew-upgrader || true | |
| @echo "✅ brew-upgrader restarted" | |
| .PHONY: launchctl-cliproxyapi | |
| launchctl-cliproxyapi: ## Restart cliproxyapi launchd agent. | |
| @echo "🔄 Restarting cliproxyapi..." | |
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.cliproxyapi || true | |
| @echo "✅ cliproxyapi restarted" | |
| .PHONY: launchctl-code-syncer | |
| launchctl-code-syncer: ## Restart code-syncer launchd agent. | |
| @echo "🔄 Restarting code-syncer..." | |
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.code-syncer || true | |
| @echo "✅ code-syncer restarted" | |
| .PHONY: launchctl-dotfiles-updater | |
| launchctl-dotfiles-updater: ## Restart dotfiles-updater launchd agent. | |
| @echo "🔄 Restarting dotfiles-updater..." | |
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.dotfiles-updater || true | |
| @echo "✅ dotfiles-updater restarted" | |
| .PHONY: launchctl-neverssl-keepalive | |
| launchctl-neverssl-keepalive: ## Restart neverssl-keepalive launchd agent. | |
| @echo "🔄 Restarting neverssl-keepalive..." | |
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.neverssl-keepalive || true | |
| @echo "✅ neverssl-keepalive restarted" | |
| .PHONY: launchctl-ollama | |
| launchctl-ollama: ## Restart ollama launchd agent. | |
| @echo "🔄 Restarting ollama..." | |
| @launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.ollama || true | |
| @echo "✅ ollama restarted" | |
| @if [ "$(OS)" = "Darwin" ]; then \ | |
| echo "🔄 Restarting brew-upgrader..."; \ | |
| launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.brew-upgrader || true; \ | |
| echo "✅ brew-upgrader restarted"; \ | |
| else \ | |
| echo "❌ brew-upgrader restart is only supported on macOS (Darwin)."; \ | |
| fi | |
| .PHONY: launchctl-cliproxyapi | |
| launchctl-cliproxyapi: ## Restart cliproxyapi launchd agent. | |
| @if [ "$(OS)" = "Darwin" ]; then \ | |
| echo "🔄 Restarting cliproxyapi..."; \ | |
| launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.cliproxyapi || true; \ | |
| echo "✅ cliproxyapi restarted"; \ | |
| else \ | |
| echo "❌ cliproxyapi restart is only supported on macOS (Darwin)."; \ | |
| fi | |
| .PHONY: launchctl-code-syncer | |
| launchctl-code-syncer: ## Restart code-syncer launchd agent. | |
| @if [ "$(OS)" = "Darwin" ]; then \ | |
| echo "🔄 Restarting code-syncer..."; \ | |
| launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.code-syncer || true; \ | |
| echo "✅ code-syncer restarted"; \ | |
| else \ | |
| echo "❌ code-syncer restart is only supported on macOS (Darwin)."; \ | |
| fi | |
| .PHONY: launchctl-dotfiles-updater | |
| launchctl-dotfiles-updater: ## Restart dotfiles-updater launchd agent. | |
| @if [ "$(OS)" = "Darwin" ]; then \ | |
| echo "🔄 Restarting dotfiles-updater..."; \ | |
| launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.dotfiles-updater || true; \ | |
| echo "✅ dotfiles-updater restarted"; \ | |
| else \ | |
| echo "❌ dotfiles-updater restart is only supported on macOS (Darwin)."; \ | |
| fi | |
| .PHONY: launchctl-neverssl-keepalive | |
| launchctl-neverssl-keepalive: ## Restart neverssl-keepalive launchd agent. | |
| @if [ "$(OS)" = "Darwin" ]; then \ | |
| echo "🔄 Restarting neverssl-keepalive..."; \ | |
| launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.neverssl-keepalive || true; \ | |
| echo "✅ neverssl-keepalive restarted"; \ | |
| else \ | |
| echo "❌ neverssl-keepalive restart is only supported on macOS (Darwin)."; \ | |
| fi | |
| .PHONY: launchctl-ollama | |
| launchctl-ollama: ## Restart ollama launchd agent. | |
| @if [ "$(OS)" = "Darwin" ]; then \ | |
| echo "🔄 Restarting ollama..."; \ | |
| launchctl kickstart -k gui/$$(id -u)/org.nix-community.home.ollama || true; \ | |
| echo "✅ ollama restarted"; \ | |
| else \ | |
| echo "❌ ollama restart is only supported on macOS (Darwin)."; \ | |
| fi |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -117,6 +117,12 @@ keymap({ "n", "v" }, "<leader>d", '"_d', opts) | |||||||||||||||||||||||||
| keymap("n", "<leader>gs", ":tab Git<cr>", opts) | ||||||||||||||||||||||||||
| -- @keymap <F9>: Open Git mergetool in new tab | ||||||||||||||||||||||||||
| keymap("n", "<F9>", ":tab Git mergetool<cr>", opts) | ||||||||||||||||||||||||||
| -- @keymap <leader>gg: Open LazyGit | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
| -- @keymap <leader>gg: Open LazyGit | |
| -- @keymap <leader>lg: Open LazyGit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix @keymap annotation to match <leader>lg mapping
The doc comment advertises <leader>gg while the actual mapping is <leader>lg, which will confuse any tooling that parses these @keymap annotations.
- -- @keymap <leader>gg: Open LazyGit
-keymap("n", "<leader>lg", ":LazyGit<cr>", opts)
+-- @keymap <leader>lg: Open LazyGit
+keymap("n", "<leader>lg", ":LazyGit<cr>", opts)📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| -- @keymap <leader>gg: Open LazyGit | |
| keymap("n", "<leader>lg", ":LazyGit<cr>", opts) | |
| -- @keymap <leader>gD: Open VS Code style diff | |
| keymap("n", "<leader>gD", function() | |
| require("vscode-diff").diff() | |
| end, opts) | |
| -- @keymap <leader>lg: Open LazyGit | |
| keymap("n", "<leader>lg", ":LazyGit<cr>", opts) | |
| -- @keymap <leader>gD: Open VS Code style diff | |
| keymap("n", "<leader>gD", function() | |
| require("vscode-diff").diff() | |
| end, opts) |
🤖 Prompt for AI Agents
In home-manager/programs/neovim/lua/keymaps.lua around lines 120 to 125, the
@keymap docstring incorrectly documents "<leader>gg" while the actual mapping is
"<leader>lg"; update the annotation to "@keymap <leader>lg: Open LazyGit" so the
comment matches the mapping and any tooling parsing these annotations will be
correct.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,6 +65,10 @@ | |
| "rev": "2d7c2db2507fa3c4956142ee607431ddb2828639", | ||
| "src": "https://github.com/stevearc/dressing.nvim" | ||
| }, | ||
| "fff.nvim": { | ||
| "rev": "9edf195c8fe71f1ab8f84e863fb27b469d2342bf", | ||
| "src": "https://github.com/dmtrKovalenko/fff.nvim" | ||
| }, | ||
|
Comment on lines
+68
to
+71
|
||
| "fidget.nvim": { | ||
| "rev": "e32b672d8fd343f9d6a76944fedb8c61d7d8111a", | ||
| "src": "https://github.com/j-hui/fidget.nvim" | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,4 +2,4 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| set -euo pipefail | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| brew upgrade | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| /opt/homebrew/bin/brew upgrade | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hardcoding the path to the
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Homebrew path is hardcoded to Apple Silicon Macs only. The absolute path Consider using a more robust approach that detects the correct Homebrew path: -/opt/homebrew/bin/brew upgrade
+if command -v brew &> /dev/null; then
+ brew upgrade
+else
+ echo "Error: brew not found in PATH" >&2
+ exit 1
+fiAlternatively, if the script is intentionally Apple Silicon-only, document this constraint clearly in a comment or README. 🤖 Prompt for AI Agents
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: Hardcoded Homebrew path is specific to Apple Silicon Macs. On Intel Macs, Homebrew is at Prompt for AI agents
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| /opt/homebrew/bin/brew upgrade | |
| if [ -x /opt/homebrew/bin/brew ]; then | |
| /opt/homebrew/bin/brew upgrade | |
| elif [ -x /usr/local/bin/brew ]; then | |
| /usr/local/bin/brew upgrade | |
| else | |
| echo "brew binary not found" >&2 | |
| exit 1 | |
| fi |
Copilot
AI
Dec 6, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hardcoded path /opt/homebrew/bin/brew assumes Homebrew is installed at the default Apple Silicon location. This will fail on Intel Macs where Homebrew is at /usr/local/bin/brew. Consider checking both locations or using the PATH from the launchd agent configuration which already includes both paths.
| /opt/homebrew/bin/brew upgrade | |
| PATH="/opt/homebrew/bin:/usr/local/bin:$PATH" | |
| brew upgrade |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
switchtarget now depends onlaunchctl, which will fail on Linux systems sincelaunchctlis a macOS-specific command. Consider adding OS detection (e.g.,[ "$(OS)" = "Darwin" ] && $(MAKE) launchctl || true) or making the launchctl target conditional on Darwin, similar to hownix-connecthandles OS-specific logic.