Install doom/vim configs on activation
This commit is contained in:
parent
d238824032
commit
a3fa93317d
|
@ -26,6 +26,15 @@
|
|||
|
||||
env.PATH = [ "$HOME/.emacs.d/bin" ];
|
||||
zsh.rc = lib.readFile <my/config/emacs/aliases.zsh>;
|
||||
setup = ''
|
||||
if [ ! -d "$HOME/.emacs.d" ]; then
|
||||
${pkgs.git}/bin/git clone https://github.com/hlissner/doom-emacs "$HOME/.emacs.d"
|
||||
fi
|
||||
if [ ! -d "$XDG_CONFIG_HOME/doom" ]; then
|
||||
${pkgs.git}/bin/git clone https://github.com/hlissner/doom-emacs-private "$XDG_CONFIG_HOME/doom"
|
||||
fi
|
||||
$HOME/.emacs.d/bin/doom sync
|
||||
'';
|
||||
};
|
||||
|
||||
fonts.fonts = [
|
||||
|
|
|
@ -8,7 +8,14 @@
|
|||
editorconfig-core-c
|
||||
neovim
|
||||
];
|
||||
|
||||
env.EDITOR = "nvim";
|
||||
env.VIMINIT = "let \\$MYVIMRC='\\$XDG_CONFIG_HOME/nvim/init.vim' | source \\$MYVIMRC";
|
||||
setup = ''
|
||||
if [ ! -d "$XDG_CONFIG_HOME/nvim" ]; then
|
||||
${pkgs.git}/bin/git clone https://github.com/hlissner/.vim "$XDG_CONFIG_HOME/nvim"
|
||||
fi
|
||||
${pkgs.gnumake}/bin/make -C "$XDG_CONFIG_HOME/nvim" update
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue