Replace nil_ls with nixd

This commit is contained in:
Oliver Davies 2024-10-23 21:07:26 +01:00
parent 05114e59b7
commit 8d07d76e2b
3 changed files with 18 additions and 2 deletions

View file

@ -48,7 +48,21 @@ local servers = {
}, },
marksman = true, marksman = true,
nil_ls = true,
nixd = {
command = { "nixd" },
settings = {
nixd = {
nixpkgs = {
expr = "import <nixpkgs> { }",
},
formatting = {
command = "nix fmt",
},
},
},
},
tailwindcss = { tailwindcss = {
filetypes = { "html", "javascript", "twig", "typescript", "vue" }, filetypes = { "html", "javascript", "twig", "typescript", "vue" },

View file

@ -17,6 +17,8 @@ in
permittedInsecurePackages = [ "electron-27.3.11" ]; permittedInsecurePackages = [ "electron-27.3.11" ];
}; };
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
# Bootloader. # Bootloader.
boot = { boot = {
loader = { loader = {

View file

@ -281,7 +281,7 @@ in
lua-language-server lua-language-server
lua54Packages.luacheck lua54Packages.luacheck
marksman marksman
nil nixd
nodePackages."@tailwindcss/language-server" nodePackages."@tailwindcss/language-server"
nodePackages.bash-language-server nodePackages.bash-language-server
nodePackages.dockerfile-language-server-nodejs nodePackages.dockerfile-language-server-nodejs