Files
nix-config/modules/common/editor.nix
2026-06-07 17:10:46 +02:00

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;
};
};
};
}