Neovim: Switch from rnix-lsp to nixd
This commit is contained in:
parent
554c16b739
commit
f89d5b0f6e
2 changed files with 30 additions and 26 deletions
|
@ -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; [
|
||||
{
|
||||
|
|
|
@ -39,7 +39,7 @@ require("lspconfig").lua_ls.setup({
|
|||
},
|
||||
})
|
||||
|
||||
require("lspconfig").rnix.setup({
|
||||
require("lspconfig").nixd.setup({
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue