Use relative paths for vim configs

This commit is contained in:
Cyryl Płotnicki 2019-08-24 18:53:12 +01:00
parent 203540cdcf
commit f092366d0a
3 changed files with 12 additions and 5 deletions

View file

@ -1,3 +1,3 @@
source /home/cyryl/dev/dotfiles/.vimrc.plugins-settings source ~/dev/dotfiles/.vimrc.plugins-settings
source /home/cyryl/dev/dotfiles/.vimrc.settings source ~/dev/dotfiles/.vimrc.settings
source /home/cyryl/dev/dotfiles/.vimrc.keymap source ~/dev/dotfiles/.vimrc.keymap

View file

@ -27,11 +27,14 @@ in
mono calcurse calibre fbreader file python37Packages.binwalk-full mono calcurse calibre fbreader file python37Packages.binwalk-full
slack discord obs-studio kpcli slack discord obs-studio kpcli
]; ];
home.sessionVariables = { home.sessionVariables = {
TERMINAL="termite"; TERMINAL="termite";
CM_LAUNCHER="rofi"; CM_LAUNCHER="rofi";
}; };
home.file.".vimrc".source = ~/dev/dotfiles/.vimrc.nixos;
imports = [ imports = [
./programs/tmux.nix ./programs/tmux.nix
./programs/zsh.nix ./programs/zsh.nix

View file

@ -4,9 +4,13 @@
neovim.override { neovim.override {
vimAlias = true; vimAlias = true;
configure = { configure = {
customRC = builtins.readFile /home/cyryl/dev/dotfiles/.vimrc.nixos; customRC = ''
if filereadable($HOME . "/.vimrc")
source ~/.vimrc
endif
'';
vam.knownPlugins = vimPlugins; vam.knownPlugins = unstable.vimPlugins;
vam.pluginDictionaries = [ vam.pluginDictionaries = [
{ names = [ { names = [
"ack-vim" "ack-vim"