]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
vim: don't set colorscheme in nvim
[dotfiles.git] / vim / vimrc
index 7adb68f21ba3744cccd12c8e4fd3e6654d39a688..4a51a99f0b8328e4a6c180c40c6b56d32e15a045 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -139,17 +139,23 @@ if !has('nvim')
 "}}}
 endif
 
+Plug 'jenterkin/vim-autosource'  " {{{2
+  let g:autosource_hashdir = $XDG_CACHE_HOME . '/vim/vim-autosource'
+  let g:autosource_conf_names = ['.vimrc', '.vimrc.lua']
+"}}}
 call plug#end()
 
 filetype plugin indent on
+syntax on
 
 " colorscheme {{{1
-syntax on
 set background=dark
 let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
 let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
 set termguicolors
-colorscheme $THEME
+if !has('nvim')
+  colorscheme $THEME
+endif
 "TODO see how I can integrate this into a theme that customises upstream Nord
 hi debugPC term=reverse ctermbg=8