c'est le bordel un peu
This commit is contained in:
26
modules/common/editor.nix
Normal file
26
modules/common/editor.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
# 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user