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
vars = import ../../../../vars.nix;
colors = config.colorScheme.colors;
in {
home.sessionVariables.EDITOR = "nvim";
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
extraPackages = with pkgs; [
stableExtraPkgs = with pkgs; [
# LSP
lua-language-server
lua
rnix-lsp # nix
# Formatters
stylua # lua
@ -42,6 +31,21 @@ in {
fzf
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; [
{

View file

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