forked from mirrors_public/oddlama_nix-config
chore: refactor minimal neovim definition
This commit is contained in:
parent
4abefb0811
commit
d4b7051091
2 changed files with 24 additions and 14 deletions
|
@ -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];
|
||||
}
|
||||
|
|
9
users/common/neovim/minimal.nix
Normal file
9
users/common/neovim/minimal.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
defaultEditor = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue