chore: refactor minimal neovim definition

This commit is contained in:
oddlama 2023-06-11 14:42:01 +02:00
parent 4abefb0811
commit d4b7051091
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 24 additions and 14 deletions

View file

@ -4,19 +4,20 @@
pkgs,
...
}: {
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
withPython3 = true;
extraPython3Packages = pyPkgs: with pyPkgs; [openai];
withNodeJs = true;
defaultEditor = true;
imports = [
./minimal.nix
];
config = lib.mkIf (!config.home.minimal) {
programs.neovim = {
withPython3 = true;
extraPython3Packages = pyPkgs: with pyPkgs; [openai];
withNodeJs = true;
};
xdg.configFile = {
"nvim/lua".source = ./lua;
"nvim/init.lua".source = ./init.lua;
};
home.packages = with pkgs; [gcc shellcheck stylua];
};
xdg.configFile = lib.mkIf (!config.home.minimal) {
"nvim/lua".source = ./lua;
"nvim/init.lua".source = ./init.lua;
};
home.packages = with pkgs; [gcc shellcheck stylua];
}

View file

@ -0,0 +1,9 @@
{
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
defaultEditor = true;
};
}