add nix ftplugin
This commit is contained in:
2
after/ftplugin/nix.lua
Normal file
2
after/ftplugin/nix.lua
Normal file
@@ -0,0 +1,2 @@
|
||||
vim.opt_local.tabstop = 2
|
||||
vim.opt_local.shiftwidth = 2
|
||||
19
after/lsp/rust_analyzer.lua
Normal file
19
after/lsp/rust_analyzer.lua
Normal 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",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user