feat(home/base/tui/editors/neovim): upgrade astronvim to v4

This commit is contained in:
Ryan Yin
2024-04-13 00:11:32 +08:00
parent a593435947
commit c5dcc7e24d
41 changed files with 1081 additions and 663 deletions
+5 -15
View File
@@ -1,6 +1,7 @@
{
config,
lib,
pkgs,
astronvim,
...
}:
###############################################################################
@@ -14,20 +15,9 @@ let
vdiff = "nvim -d";
};
in {
xdg.configFile = {
# astronvim's config
"nvim" = {
source = astronvim;
force = true;
};
# my custom astronvim config, astronvim will load it after base config
# https://github.com/AstroNvim/AstroNvim/blob/v3.32.0/lua/astronvim/bootstrap.lua#L15-L16
"astronvim/lua/user" = {
source = ./astronvim_user;
force = true;
};
};
home.activation.installAstroNvim = lib.hm.dag.entryAfter ["writeBoundary"] ''
${pkgs.rsync}/bin/rsync -avz --chmod=D2755,F744 ${./nvim}/ ${config.xdg.configHome}/nvim/
'';
home.shellAliases = shellAliases;
programs.nushell.shellAliases = shellAliases;