]> git.rmz.io Git - dotfiles.git/commitdiff
vim: don't set colorscheme in nvim
authorSamir Benmendil <me@rmz.io>
Sat, 14 Jan 2023 01:00:28 +0000 (01:00 +0000)
committerSamir Benmendil <me@rmz.io>
Sat, 14 Jan 2023 02:35:28 +0000 (02:35 +0000)
vim/vimrc

index 93f8bd0f25932decc9f576471f8fa45f19f4ea84..4a51a99f0b8328e4a6c180c40c6b56d32e15a045 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -146,14 +146,16 @@ Plug 'jenterkin/vim-autosource'  " {{{2
 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