Neovim: Switch from rnix-lsp to nixd

This commit is contained in:
GHOSCHT 2024-05-01 14:10:56 +02:00
parent 554c16b739
commit f89d5b0f6e
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
2 changed files with 30 additions and 26 deletions

View file

@ -7,21 +7,10 @@
}: let }: let
vars = import ../../../../vars.nix; vars = import ../../../../vars.nix;
colors = config.colorScheme.colors; colors = config.colorScheme.colors;
in { stableExtraPkgs = with pkgs; [
home.sessionVariables.EDITOR = "nvim";
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
extraPackages = with pkgs; [
# LSP # LSP
lua-language-server lua-language-server
lua lua
rnix-lsp # nix
# Formatters # Formatters
stylua # lua stylua # lua
@ -42,6 +31,21 @@ in {
fzf fzf
gcc gcc
]; ];
unstableExtraPkgs = with pkgs.unstable; [
# LSP
nixd
];
in {
home.sessionVariables.EDITOR = "nvim";
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
extraPackages = stableExtraPkgs ++ unstableExtraPkgs;
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [
{ {

View file

@ -39,7 +39,7 @@ require("lspconfig").lua_ls.setup({
}, },
}) })
require("lspconfig").rnix.setup({ require("lspconfig").nixd.setup({
on_attach = on_attach, on_attach = on_attach,
capabilities = capabilities, capabilities = capabilities,
}) })