Update colorscheme fix to be conditional on neovim version

This commit is contained in:
Andrew R. M. 2024-12-04 10:11:40 -05:00
parent 6c09b2c11b
commit c2e40ce9df

View File

@ -2,15 +2,19 @@ set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc
" Revert color management to "Old style" vim methods until we can update
" colorschems Ref: https://neovim.io/doc/user/news-0.10.html
set notermguicolors
" This should probably be set up to be conditional
source $VIMRUNTIME/colors/vim.lua
lua <<EOF
vim.g.mapleader = ','
-- Revert color management to "Old style" vim methods until we can update
-- colorschems Ref: https://neovim.io/doc/user/news-0.10.html
if vim.fn.has('nvim-0.10') == 1 then
vim.cmd([[
set notermguicolors
source $VIMRUNTIME/colors/vim.lua
]])
end
require('user.lspconfig')
require('user.indentblanklines')
require('user.luasnip')