From bdbde5464800ed814f2749a7cd1a73d35320abad Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Wed, 23 Apr 2025 18:34:02 +0300 Subject: Added nix LSP (nil_ls) I love it, it just works out of the box, unlike nixd which was so broken I couldn't get it to work, and it's so much more featureful, it has insane autocompletion for keywords and vars and I can go to definition/go to references on files/vars etc and it has diagnostics and shows when there is an error, it's so much better, and it has completion for nix options --- .config/nvim/lua/custom/config/language-servers.lua | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/custom/config/language-servers.lua b/.config/nvim/lua/custom/config/language-servers.lua index e3d7d29..f7e28c1 100644 --- a/.config/nvim/lua/custom/config/language-servers.lua +++ b/.config/nvim/lua/custom/config/language-servers.lua @@ -147,23 +147,7 @@ return { }, }, }, -- zig - -- nixd = { - -- mason = false, - -- cmd = { 'nixd' }, - -- settings = { - -- nixd = { - -- nixpkgs = { expr = 'import { }' }, - -- -- options = { - -- -- nixos = { - -- -- expr = '(builtins.getFlake \\"/home/kyren/dotfiles/flake.nix").nixosConfigurations.laptop-nixos.options', - -- -- }, - -- -- home_manager = { - -- -- expr = '(builtins.getFlake \\"/home/kyren/dotfiles/flake.nix").homeConfigurations.laptop-nixos.options', - -- -- }, - -- -- }, - -- }, - -- }, - -- }, + nil_ls = {}, -- nix asm_lsp = { mason = false, cmd = { 'asm-lsp' }, -- cgit v1.3.1