Update colorscheme fix to be conditional on neovim version

This commit is contained in:
Andrew R. M 2025-04-05 16:37:09 -04:00 committed by Andrew R. M.
parent e12d4ae431
commit b060cb0f83

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')