[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 libtool
patchelf patchelf
pcre pcre
pinentry
pkg-config pkg-config
]; ];
@ -30,7 +29,7 @@ let
kubectl kubectl
kubelogin-oidc kubelogin-oidc
mosh mosh
neovim # neovim # already managed by home-manager
nixpkgs-fmt nixpkgs-fmt
ripgrep ripgrep
sops sops
@ -125,6 +124,30 @@ in
programs.gitui.enable = true; 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 # DO NOT CHANGE UNLESS YOU ARE ABSOLUTELY SURE ALL STATE AFFECTED BY THIS
# OPTION IS APPROPRIATELY MIGRATED!!! # OPTION IS APPROPRIATELY MIGRATED!!!
home.stateVersion = "23.05"; # did you read the comment? home.stateVersion = "23.05"; # did you read the comment?
@ -151,6 +174,7 @@ in
"croc" "croc"
"ddev" "ddev"
"mkcert" "mkcert"
"pinentry-mac"
"pkg-config" "pkg-config"
"sdl2" "sdl2"
]; ];