[nix] Manage the neovim config

This commit is contained in:
Alyxia Sother 2023-06-09 16:46:44 +02:00
parent 4230e24e65
commit 3530a88e81
No known key found for this signature in database
GPG Key ID: 01E16C4E775A37E4
1 changed files with 26 additions and 2 deletions

View File

@ -8,7 +8,6 @@ let
libtool
patchelf
pcre
pinentry
pkg-config
];
@ -30,7 +29,7 @@ let
kubectl
kubelogin-oidc
mosh
neovim
# neovim # already managed by home-manager
nixpkgs-fmt
ripgrep
sops
@ -125,6 +124,30 @@ in
programs.gitui.enable = true;
programs.neovim = {
enable = true;
package = pkgs.neovim-unwrapped;
extraConfig = "source ${dotfiles}/nvim/init.vim";
coc = {
enable = true;
settings = {
languageServer = {
nix = {
command = "rnix-lsp";
filetypes = [ "nix" ];
};
"go.goPlsOptions" = {
completion = true;
completeUnimported = true;
};
};
};
};
};
# DO NOT CHANGE UNLESS YOU ARE ABSOLUTELY SURE ALL STATE AFFECTED BY THIS
# OPTION IS APPROPRIATELY MIGRATED!!!
home.stateVersion = "23.05"; # did you read the comment?
@ -151,6 +174,7 @@ in
"croc"
"ddev"
"mkcert"
"pinentry-mac"
"pkg-config"
"sdl2"
];