add nix ftplugin

This commit is contained in:
2026-06-28 15:20:20 +09:00
parent 881b809c32
commit f6fa2f15cc
7 changed files with 117 additions and 20 deletions

2
after/ftplugin/nix.lua Normal file
View File

@@ -0,0 +1,2 @@
vim.opt_local.tabstop = 2
vim.opt_local.shiftwidth = 2

View File

@@ -0,0 +1,19 @@
return {
settings = {
["rust-analyzer"] = {
files = {
-- .direnv dirs symlink into full nixpkgs source trees in the nix
-- store; without excluding them rust-analyzer follows the symlinks,
-- tries to watch/index ~100k dirs, hits the inotify watch limit and
-- never finishes loading.
excludeDirs = {
".direnv",
"libkiwoom/.direnv",
"crates/libkiwoom-sys/.direnv",
"target",
"node_modules",
},
},
},
},
}