Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
19a2fe4
fix(nvim): resolve healthcheck warnings and add missing formatter tools
shunkakinoki Apr 23, 2026
ff6f39a
fix(go,nix): resolve gotools bundle conflict and nixfmt deprecation w…
shunkakinoki Apr 23, 2026
4db1900
fix(nvim): enable copilot suggestions, add LSP servers and image tools
shunkakinoki Apr 23, 2026
03d3479
fix(nvim): fix overlapping keymaps and add keymap conflict check
shunkakinoki Apr 23, 2026
b1819df
fix(nvim): restore <leader>h as kill terminal, move hunks to <leader>H
shunkakinoki Apr 23, 2026
0402b47
chore: update claude plugins overrides
shunkakinoki Apr 23, 2026
7342b52
fix(nix): rename dockerfile-language-server-nodejs to dockerfile-lang…
shunkakinoki Apr 23, 2026
b8ef088
fix(shell): declare local before assign to satisfy SC2155
shunkakinoki Apr 23, 2026
bb2524d
chore: apply formatting
shunkakinoki Apr 23, 2026
8cd290f
refactor(docker): move docker packages into programs/docker
shunkakinoki Apr 23, 2026
b25bf3e
fix(nvim): move leader>dl to leader>xd, enforce keymap overlap check …
shunkakinoki Apr 23, 2026
fe1fcc5
fix(nvim): eliminate all keymap overlaps and enforce zero-overlap che…
shunkakinoki Apr 23, 2026
4419590
fix(nvim): remove duplicate nvim-surround setup from treesitter.lua
shunkakinoki Apr 23, 2026
0259c2b
fix(nvim): open temp file in keymap check to trigger BufEnter, remove…
shunkakinoki Apr 23, 2026
887ba68
fix(nvim): rename nvim-tree y/d/c to Y/D/C to eliminate which-key ove…
shunkakinoki Apr 23, 2026
6411fa3
fix(nvim): migrate nvim-surround to v4 keymap API
shunkakinoki Apr 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,18 @@ lua-check-neovim: ## Check Neovim configuration.
echo "❌ Neovim configuration has errors"; \
exit 1; \
fi
@echo "🔑 Checking for keymap conflicts..."
@TMPFILE=$$(mktemp /tmp/nvim-keymap-check-XXXXXX.lua); \
OVERLAPS=$$(nvim -u "$(PWD)/home-manager/programs/neovim/init.lua" --headless "$$TMPFILE" \
-c "checkhealth which-key" -c "qa" 2>&1 | grep "WARNING" | grep -i "overlaps with"); \
rm -f "$$TMPFILE"; \
if [ -n "$$OVERLAPS" ]; then \
echo "❌ Keymap overlaps found:"; \
echo "$$OVERLAPS"; \
exit 1; \
else \
echo "✅ No keymap overlaps"; \
fi
@echo "✅ Neovim configuration is valid"

.PHONY: lua-check-neovim-dev
Expand Down
6 changes: 5 additions & 1 deletion config/claude/activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@ set -euo pipefail
SETTINGS_JSON="$1"

mkdir -p ~/.claude
cp -f "$SETTINGS_JSON" ~/.claude/settings.json
_TMP=$(mktemp)
jq --arg host "$(hostname)" '
. * (.hostOverrides[$host] // {}) | del(.hostOverrides)
' "$SETTINGS_JSON" >"$_TMP"
mv "$_TMP" ~/.claude/settings.json
Comment on lines +8 to +12

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Keep the generated settings write atomic and non-interactive.

mktemp defaults outside ~/.claude, so mv may degrade to copy+unlink across filesystems. Also use mv -f and clean up the temp file on jq failure.

Proposed fix
-_TMP=$(mktemp)
+_TMP=$(mktemp "$HOME/.claude/settings.json.XXXXXX")
+trap 'rm -f "$_TMP"' EXIT
 jq --arg host "$(hostname)" '
   . * (.hostOverrides[$host] // {}) | del(.hostOverrides)
 ' "$SETTINGS_JSON" > "$_TMP"
-mv "$_TMP" ~/.claude/settings.json
+mv -f "$_TMP" "$HOME/.claude/settings.json"
+trap - EXIT

As per coding guidelines, **/*.{sh,bash}: Always use non-interactive flags with file operations (cp -f, mv -f, rm -f, rm -rf, cp -rf) to avoid hanging on confirmation prompts.

📝 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.

Suggested change
_TMP=$(mktemp)
jq --arg host "$(hostname)" '
. * (.hostOverrides[$host] // {}) | del(.hostOverrides)
' "$SETTINGS_JSON" > "$_TMP"
mv "$_TMP" ~/.claude/settings.json
_TMP=$(mktemp "$HOME/.claude/settings.json.XXXXXX")
trap 'rm -f "$_TMP"' EXIT
jq --arg host "$(hostname)" '
. * (.hostOverrides[$host] // {}) | del(.hostOverrides)
' "$SETTINGS_JSON" > "$_TMP"
mv -f "$_TMP" "$HOME/.claude/settings.json"
trap - EXIT
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@config/claude/activate.sh` around lines 8 - 12, The current script uses
mktemp outside ~/.claude which can cause mv to copy+unlink across filesystems
and doesn't clean up on jq failure; change to create the temporary file in the
target directory (use mktemp with the same directory as ~/.claude/settings.json
or construct a temp name in $HOME/.claude), run jq to write to that temp, check
jq exit status and on failure remove the temp (rm -f $_TMP), and on success use
mv -f $_TMP ~/.claude/settings.json to replace atomically; also add a trap to rm
-f $_TMP on exit/error to ensure cleanup; reference symbols: mktemp, $_TMP, jq,
SETTINGS_JSON, ~/.claude/settings.json, mv -f, rm -f, and trap.

chmod 644 ~/.claude/settings.json
9 changes: 8 additions & 1 deletion config/claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -518,5 +518,12 @@
},
"skipDangerousModePermissionPrompt": true,
"defaultMode": "bypassPermissions",
"teammateMode": "tmux"
"teammateMode": "tmux",
"hostOverrides": {
"matic": {
"enabledPlugins": {
"mempalace@mempalace": false
}
}
}
}
15 changes: 6 additions & 9 deletions home-manager/packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,9 @@ with pkgs;
jujutsu
just
k6
k9s
kind
kubeconform
kubectl
kubectx
kubernetes-helm
kustomize
(if stdenv.isLinux && isDesktop then llama-cpp.override { vulkanSupport = true; } else llama-cpp)
llm
lsof
mariadb
mise
mkcert
Expand All @@ -94,6 +88,7 @@ with pkgs;
tmuxinator
tokei
tree
tree-sitter
turso-cli
uv
victorialogs
Expand All @@ -117,8 +112,6 @@ with pkgs;
cmake
codex
collectd
docker
docker-compose
fwupd
gcc
gemini-cli
Expand Down Expand Up @@ -163,6 +156,7 @@ with pkgs;
ffmpeg
file-roller
gedit
ghostscript
ghostty
github-desktop
gnome-calculator
Expand All @@ -187,9 +181,11 @@ with pkgs;
hyprshell
hyprshot
hyprsunset
imagemagick
libnotify
linux-wallpaperengine
loupe
mermaid-cli
mpv
nautilus
networkmanagerapplet
Expand All @@ -207,6 +203,7 @@ with pkgs;
slack
slurp
swappy
tectonic
telegram-desktop
totem
v4l-utils
Expand Down
4 changes: 4 additions & 0 deletions home-manager/programs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ let
cass = import ./cass;
clang = import ./clang;
dart = import ./dart;
docker = import ./docker;
delta = import ./delta;
direnv = import ./direnv;
elixir = import ./elixir;
Expand All @@ -24,6 +25,7 @@ let
go = import ./go;
haskell = import ./haskell;
java = import ./java;
k8s = import ./k8s;
kotlin = import ./kotlin;
lazydocker = import ./lazydocker;
lazygit = import ./lazygit;
Expand Down Expand Up @@ -59,6 +61,7 @@ in
cass
clang
dart
docker
delta
direnv
elixir
Expand All @@ -72,6 +75,7 @@ in
go
haskell
java
k8s
kotlin
lazydocker
lazygit
Expand Down
8 changes: 8 additions & 0 deletions home-manager/programs/docker/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
docker
docker-compose
dockerfile-language-server
];
}
3 changes: 2 additions & 1 deletion home-manager/programs/go/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
home.packages = with pkgs; [
go
(lib.lowPrio gotools)
gopls
];
}
12 changes: 12 additions & 0 deletions home-manager/programs/k8s/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
k9s
kind
kubeconform
kubectl
kubectx
kubernetes-helm
kustomize
];
}
1 change: 1 addition & 0 deletions home-manager/programs/lua/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
home.packages = with pkgs; [
lua
lua-language-server
stylua
];
}
4 changes: 0 additions & 4 deletions home-manager/programs/neovim/lua/config/ai.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ vim.keymap.set({ "n", "x" }, "go", function()
return require("opencode").operator("@this ")
end, { expr = true, desc = "Add range to opencode" })

vim.keymap.set("n", "goo", function()
return require("opencode").operator("@this ") .. "_"
end, { expr = true, desc = "Add line to opencode" })

-- Scroll keymaps for opencode session
vim.keymap.set("n", "<S-C-u>", function()
require("opencode").command("session.half.page.up")
Expand Down
2 changes: 1 addition & 1 deletion home-manager/programs/neovim/lua/config/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ cmp.setup.cmdline(":", {
-- GitHub Copilot helper with inline suggestions disabled by default.
-- From: https://github.com/zbirenbaum/copilot.lua
require("copilot").setup({
suggestion = { enabled = false },
suggestion = { enabled = true },

@cubic-dev-ai cubic-dev-ai Bot Apr 23, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Keep copilot.lua inline suggestions disabled when using copilot-cmp; enabling them can interfere with cmp completions.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At home-manager/programs/neovim/lua/config/completion.lua, line 76:

<comment>Keep copilot.lua inline suggestions disabled when using copilot-cmp; enabling them can interfere with cmp completions.</comment>

<file context>
@@ -73,7 +73,7 @@ cmp.setup.cmdline(":", {
 -- From: https://github.com/zbirenbaum/copilot.lua
 require("copilot").setup({
-	suggestion = { enabled = false },
+	suggestion = { enabled = true },
 	panel = { enabled = false },
 })
</file context>
Suggested change
suggestion = { enabled = true },
suggestion = { enabled = false },
Fix with Cubic

panel = { enabled = false },
})
Comment on lines 73 to 78

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

copilot-cmp README recommendation on copilot.lua suggestion.enabled setting

💡 Result:

The copilot-cmp README recommends disabling the suggestion module in copilot.lua when using copilot-cmp. Specifically, set suggestion.enabled = false (along with panel.enabled = false) in the copilot.lua setup to prevent interference with completions appearing properly in the nvim-cmp menu provided by copilot-cmp.

Citations:


🏁 Script executed:

# Check if the file exists and examine lines 73-78
if [ -f "home-manager/programs/neovim/lua/config/completion.lua" ]; then
  echo "=== completion.lua lines 70-80 ==="
  sed -n '70,80p' "home-manager/programs/neovim/lua/config/completion.lua"
else
  find . -name "completion.lua" -type f | head -5
fi

Repository: shunkakinoki/dotfiles

Length of output: 377


🏁 Script executed:

# Check the test file for assertion about suggestion.enabled
if [ -f "home-manager/programs/neovim/tests/completion_spec.lua" ]; then
  echo "=== completion_spec.lua lines 135-145 ==="
  sed -n '135,145p' "home-manager/programs/neovim/tests/completion_spec.lua"
else
  find . -name "completion_spec.lua" -type f | head -5
fi

Repository: shunkakinoki/dotfiles

Length of output: 447


🏁 Script executed:

# Check for copilot-cmp configuration at lines 6 and 39 in completion.lua
if [ -f "home-manager/programs/neovim/lua/config/completion.lua" ]; then
  echo "=== completion.lua lines 1-50 (to find copilot-cmp usage) ==="
  sed -n '1,50p' "home-manager/programs/neovim/lua/config/completion.lua"
fi

Repository: shunkakinoki/dotfiles

Length of output: 1640


Stale comment, failing test, and configuration conflicts with copilot-cmp upstream guidance.

Three issues with suggestion.enabled = true:

  1. Stale comment: Line 73 claims inline suggestions are "disabled by default" but the code enables them.
  2. Test will fail: completion_spec.lua:139-140 asserts suggestion.enabled = false; this assertion fails with the current code.
  3. Upstream conflict: copilot-cmp README recommends disabling suggestion.enabled when using copilot-cmp to prevent ghost text and menu suggestions from conflicting. The code sets copilot_cmp.setup() (line 6) and includes { name = "copilot" } in cmp.config.sources (line 39), making the dual activation problematic.
🔧 Proposed fix
-- GitHub Copilot helper with inline suggestions disabled by default.
+-- GitHub Copilot helper configured for nvim-cmp.
 -- From: https://github.com/zbirenbaum/copilot.lua
 require("copilot").setup({
-	suggestion = { enabled = true },
+	suggestion = { enabled = false },
 	panel = { enabled = false },
 })

Ensure completion_spec.lua:139-140 test expectations align with this change.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@home-manager/programs/neovim/lua/config/completion.lua` around lines 73 - 78,
The current copilot setup enables inline suggestions (suggestion.enabled = true)
which contradicts the comment, breaks the test (completion_spec.lua assertions
expecting false) and conflicts with copilot-cmp usage; change the copilot
configuration in copilot.setup to set suggestion.enabled = false, update or
remove the stale comment about "disabled by default", and ensure
copilot_cmp.setup() + the { name = "copilot" } entry in cmp.config.sources
remain compatible (i.e., disable inline(gottxt) suggestions via
suggestion.enabled so only copilot-cmp provides completions) and then adjust
completion_spec.lua expectations if you intend to keep inline suggestions
enabled in a different test setup.


Expand Down
49 changes: 30 additions & 19 deletions home-manager/programs/neovim/lua/config/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ keymap("n", "<leader>q", function()
vim.cmd("Bdelete")
end
end, { noremap = true, silent = true, desc = "Close window / delete buffer" })
-- @keymap <leader>bad: Wipe all buffers
keymap("n", "<leader>bad", ":%bwipeout!<cr>:intro<cr>", { noremap = true, silent = true, desc = "Wipe all buffers" })
-- @keymap <leader>BD: Wipe all buffers
keymap("n", "<leader>BD", ":%bwipeout!<cr>:intro<cr>", { noremap = true, silent = true, desc = "Wipe all buffers" })
-- @keymap <leader>w: Write file
keymap("n", "<leader>w", ":write<CR>", { noremap = true, silent = true, desc = "Save file" })
-- @keymap <leader>W: Save all and quit
Expand Down Expand Up @@ -199,18 +199,18 @@ keymap(
":Gitsigns preview_hunk_inline<cr>",
{ noremap = true, silent = true, desc = "Preview hunk inline" }
)
-- @keymap <leader>hs: Stage hunk (Gitsigns)
keymap("n", "<leader>hs", ":Gitsigns stage_hunk<cr>", { noremap = true, silent = true, desc = "Stage hunk" })
-- @keymap <leader>hr: Reset hunk (Gitsigns)
keymap("n", "<leader>hr", ":Gitsigns reset_hunk<cr>", { noremap = true, silent = true, desc = "Reset hunk" })
-- @keymap <leader>hp: Preview hunk (Gitsigns)
keymap("n", "<leader>hp", ":Gitsigns preview_hunk<cr>", { noremap = true, silent = true, desc = "Preview hunk" })
-- @keymap <leader>hb: Blame line (Gitsigns)
keymap("n", "<leader>hb", ":Gitsigns blame_line<cr>", { noremap = true, silent = true, desc = "Blame line" })
-- @keymap <leader>hn: Next hunk (Gitsigns)
keymap("n", "<leader>hn", ":Gitsigns next_hunk<cr>", { noremap = true, silent = true, desc = "Next hunk" })
-- @keymap <leader>hN: Prev hunk (Gitsigns)
keymap("n", "<leader>hN", ":Gitsigns prev_hunk<cr>", { noremap = true, silent = true, desc = "Prev hunk" })
-- @keymap <leader>Hs: Stage hunk (Gitsigns)
keymap("n", "<leader>Hs", ":Gitsigns stage_hunk<cr>", { noremap = true, silent = true, desc = "Stage hunk" })
-- @keymap <leader>Hr: Reset hunk (Gitsigns)
keymap("n", "<leader>Hr", ":Gitsigns reset_hunk<cr>", { noremap = true, silent = true, desc = "Reset hunk" })
-- @keymap <leader>Hp: Preview hunk (Gitsigns)
keymap("n", "<leader>Hp", ":Gitsigns preview_hunk<cr>", { noremap = true, silent = true, desc = "Preview hunk" })
-- @keymap <leader>Hb: Blame line (Gitsigns)
keymap("n", "<leader>Hb", ":Gitsigns blame_line<cr>", { noremap = true, silent = true, desc = "Blame line" })
-- @keymap <leader>Hn: Next hunk (Gitsigns)
keymap("n", "<leader>Hn", ":Gitsigns next_hunk<cr>", { noremap = true, silent = true, desc = "Next hunk" })
-- @keymap <leader>HN: Prev hunk (Gitsigns)
keymap("n", "<leader>HN", ":Gitsigns prev_hunk<cr>", { noremap = true, silent = true, desc = "Prev hunk" })
-- @keymap <leader>gs: Fugitive vertical diff split (current file vs index)
keymap("n", "<leader>gs", ":Gvdiffsplit<cr>", { noremap = true, silent = true, desc = "Diff split (index)" })
-- @keymap <leader>gS: Fugitive diff split vs HEAD
Expand Down Expand Up @@ -277,8 +277,8 @@ keymap("n", "<leader>xl", "<cmd>Trouble loclist toggle<cr>", { noremap = true, s
keymap("n", "]d", vim.diagnostic.goto_next, { desc = "Next Diagnostic" })
-- @keymap [d: Go to previous diagnostic
keymap("n", "[d", vim.diagnostic.goto_prev, { desc = "Previous Diagnostic" })
-- @keymap <leader>dl: Show line diagnostics
keymap("n", "<leader>dl", vim.diagnostic.open_float, { desc = "Line Diagnostics" })
-- @keymap <leader>xd: Show line diagnostics
keymap("n", "<leader>xd", vim.diagnostic.open_float, { desc = "Line Diagnostics" })

-- ====================================================================================
-- FFF.NVIM (Fast Fuzzy File Finder)
Expand Down Expand Up @@ -327,8 +327,8 @@ keymap("n", "<leader>ov", ":OtherVSplit<cr>", { noremap = true, silent = true, d
-- @keymap <leader>os: Navigate to related file in horizontal split
keymap("n", "<leader>os", ":OtherSplit<cr>", { noremap = true, silent = true, desc = "Related file (split)" })

-- @keymap gco: Generate code annotation (neogen)
keymap("n", "gco", ":Neogen<cr>", { noremap = true, silent = true, desc = "Generate annotation" })
-- @keymap <leader>ca: Generate code annotation (neogen)
keymap("n", "<leader>ca", ":Neogen<cr>", { noremap = true, silent = true, desc = "Generate annotation" })

-- @keymap <leader>st: Toggle treesitter split/join
-- Treesitter-based split/join helper for code structures.
Expand Down Expand Up @@ -393,6 +393,17 @@ keymap("n", "<leader>ac", function()
require("sidekick.cli").toggle({ name = "claude", focus = true })
end, { noremap = true, silent = true, desc = "Sidekick Claude" })

-- ====================================================================================
-- PLUGIN KEYMAP OVERRIDES
-- ====================================================================================
-- nvim-surround v4: keymaps no longer configured via setup(); delete directly.
require("nvim-surround").setup({})
pcall(vim.keymap.del, "n", "yss")
pcall(vim.keymap.del, "n", "ySS")

-- Remove Neovim built-in gcc shorthand; gc_ achieves the same result.
pcall(vim.keymap.del, "n", "gcc")

-- ====================================================================================
-- WHICH-KEY GROUPS
-- ====================================================================================
Expand All @@ -405,7 +416,7 @@ wk.add({
{ "<leader>f", group = "Find/Files" },
{ "<leader>x", group = "Trouble/Diagnostics" },
{ "<leader>c", group = "Code" },
{ "<leader>h", group = "Hunk (Git)" },
{ "<leader>H", group = "Hunk (Git)" },
})

-- ====================================================================================
Expand Down
4 changes: 0 additions & 4 deletions home-manager/programs/neovim/lua/config/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ require("nvim-autopairs").setup()
-- From: https://github.com/windwp/nvim-ts-autotag
require("nvim-ts-autotag").setup()

-- Modern surround manipulation for parentheses, brackets, tags, etc.
-- From: https://github.com/kylechui/nvim-surround
require("nvim-surround").setup()

-- Highlights and lists TODO/FIXME/NOTE-style comments across projects.
-- From: https://github.com/folke/todo-comments.nvim
require("todo-comments").setup()
Expand Down
24 changes: 15 additions & 9 deletions home-manager/programs/neovim/lua/config/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@ require("nvim-tree").setup({
vim.keymap.set("n", "i", api.node.open.horizontal, opts("Open: Horizontal Split"))
-- @keymap a: Add file/folder (nvim-tree)
vim.keymap.set("n", "a", api.fs.create, opts("Create"))
-- @keymap d: Delete file/folder (nvim-tree)
vim.keymap.set("n", "d", api.fs.remove, opts("Delete"))
-- @keymap D: Delete file/folder (nvim-tree)
vim.keymap.set("n", "D", api.fs.remove, opts("Delete"))
-- @keymap r: Rename file/folder (nvim-tree)
vim.keymap.set("n", "r", api.fs.rename, opts("Rename"))
-- @keymap y: Copy absolute path (nvim-tree)
vim.keymap.set("n", "y", api.fs.copy.absolute_path, opts("Copy Absolute Path"))
-- @keymap Y: Copy relative path (nvim-tree)
vim.keymap.set("n", "Y", api.fs.copy.relative_path, opts("Copy Relative Path"))
-- @keymap c: Change directory (nvim-tree)
vim.keymap.set("n", "c", api.tree.change_root_to_node, opts("CD"))
-- @keymap Y: Copy absolute path (nvim-tree)
vim.keymap.set("n", "Y", api.fs.copy.absolute_path, opts("Copy Absolute Path"))
-- @keymap <C-y>: Copy relative path (nvim-tree)
vim.keymap.set("n", "<C-y>", api.fs.copy.relative_path, opts("Copy Relative Path"))
-- @keymap C: Change directory (nvim-tree)
vim.keymap.set("n", "C", api.tree.change_root_to_node, opts("CD"))
-- @keymap u: Go to parent directory (nvim-tree)
vim.keymap.set("n", "u", api.tree.change_root_to_parent, opts("Up"))
-- @keymap q: Close tree (nvim-tree)
Expand Down Expand Up @@ -155,7 +155,13 @@ require("which-key").setup({})

-- Shows non-blocking LSP progress spinners in the corner.
-- From: https://github.com/j-hui/fidget.nvim
require("fidget").setup({})
require("fidget").setup({
notification = {
window = {
avoid = { "NvimTree" },
},
},
})

-- Makes directories editable as buffers for quick navigation.
-- From: https://github.com/stevearc/oil.nvim
Expand Down
Loading
Loading