Override colorscheme's cursor line number color

This commit is contained in:
ItsDrike 2021-12-05 20:09:52 +01:00
parent 5edd892f48
commit 11baef383b
No known key found for this signature in database
GPG key ID: FB8CA11A2CF3A843

View file

@ -20,8 +20,15 @@ set guioptions-=r " Remove right-hand scrollbar
set guioptions-=L " Remove left-hand scrollbar set guioptions-=L " Remove left-hand scrollbar
]] ]]
-- Use more noticable cursor line color -- Override some colorscheme colors
cmd[[highlight CursorLine guibg=#2b2b2b]] -- * Use more noticable cursor line color
cmd[[
augroup coloroverride
autocmd!
autocmd ColorScheme * highlight CursorLine guibg=#2b2b2b
autocmd ColorScheme * highlight CursorLineNr guifg=#1F85DE ctermfg=LightBlue
augroup END
]]
-- Don't use true colors in TTY -- Don't use true colors in TTY
o.termguicolors = os.getenv("DISPLAY") and true or false o.termguicolors = os.getenv("DISPLAY") and true or false