27 lines
454 B
Nix
27 lines
454 B
Nix
# modules/common/editor.nix
|
|
{pkgs, ...}: let
|
|
nvimCfg = import ./nvim-cfg.nix {inherit pkgs;};
|
|
in {
|
|
programs.neovim = {
|
|
enable = true;
|
|
defaultEditor = true;
|
|
|
|
viAlias = true;
|
|
vimAlias = true;
|
|
|
|
configure = {
|
|
customRC = ''
|
|
${nvimCfg.baseVimConfig}
|
|
|
|
lua << EOF
|
|
${nvimCfg.baseLuaConfig}
|
|
EOF
|
|
'';
|
|
|
|
packages.myNeovimPackages = {
|
|
start = nvimCfg.basePlugins;
|
|
};
|
|
};
|
|
};
|
|
}
|