nvim: added nil ls config

This commit is contained in:
Tigor Hutasuhut 2024-06-12 19:52:07 +07:00
parent 0712deac29
commit 79ed7d929b
2 changed files with 18 additions and 0 deletions

View file

@ -11,6 +11,8 @@
};
home.packages = with pkgs; [
stylua
lua-language-server
docker-compose-language-service
emmet-ls
silicon # For code screenshots
@ -20,6 +22,9 @@
gotests
iferr
curl
cargo
nixpkgs-fmt
nil
gcc
python3

View file

@ -25,3 +25,16 @@ vim.filetype.add {
templ = "templ",
},
}
require("lspconfig").nil_ls.setup {
settings = {
["nil"] = {
nix = {
flake = {
autoArchive = true,
autoEvalInputs = vim.fn.getenv "NIL_LS_NIX_AUTO_EVAL_INPUTS" ~= vim.NIL,
},
},
},
},
}