From b04c442c874ab07c5c5f75f25a12898dddfc3dfe Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Mon, 7 Nov 2022 08:04:29 -0500 Subject: [PATCH] replace rnix lsp with nil --- modules/neovim/lua/packer/lsp.lua | 4 ++-- modules/programming/nix.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/neovim/lua/packer/lsp.lua b/modules/neovim/lua/packer/lsp.lua index 1a4ccc2..82dd205 100644 --- a/modules/neovim/lua/packer/lsp.lua +++ b/modules/neovim/lua/packer/lsp.lua @@ -46,8 +46,8 @@ M.packer = function(use) capabilities = capabilities, }) end - if on_path("rnix-lsp") then - require("lspconfig").rnix.setup({ capabilities = capabilities }) + if on_path("nil") then + require("lspconfig").nil_ls.setup({ capabilities = capabilities }) end vim.keymap.set("n", "gd", vim.lsp.buf.definition) diff --git a/modules/programming/nix.nix b/modules/programming/nix.nix index f928118..272b227 100644 --- a/modules/programming/nix.nix +++ b/modules/programming/nix.nix @@ -4,7 +4,7 @@ home.packages = with pkgs; [ nixfmt # Nix file formatter - rnix-lsp # Nix language server + nil # Nix language server ]; };