nvim: Fix color scheme setting point
It seems since we are using hard coded colors, so we do not need the auto command at all. Getting rid of it gives the right results. Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
321213894b
commit
f6c8b8d8fa
2 changed files with 10 additions and 16 deletions
|
@ -185,6 +185,8 @@ set completeopt=menu,noselect,preview,noinsert
|
|||
set sessionoptions-=blank
|
||||
set grepprg=rg\ --vimgrep
|
||||
|
||||
colorscheme gruvbox8_hard
|
||||
|
||||
" --------------------------- Key Bindings -----------------------------------
|
||||
" Allow saving of files as sudo when I forgot to start vim using sudo
|
||||
cmap w!! w !sudo tee > /dev/null %
|
||||
|
|
|
@ -4,18 +4,14 @@ augroup UserStatusline
|
|||
autocmd WinLeave * setlocal statusline=%!PassiveStatus()
|
||||
augroup END
|
||||
|
||||
augroup UserStatusLineColors
|
||||
autocmd!
|
||||
autocmd ColorScheme *
|
||||
\ hi User1 guifg=DarkRed guibg=Black |
|
||||
\ hi User2 guifg=White guibg=Black |
|
||||
\ hi User3 guifg=Cyan guibg=Black |
|
||||
\ hi User4 guifg=Orange guibg=Black |
|
||||
\ hi User5 guifg=Red guibg=Black |
|
||||
\ hi User6 guifg=Gray guibg=Black |
|
||||
\ hi User7 guifg=Gray guibg=Black |
|
||||
\ hi User8 guifg=DarkYellow guibg=Black
|
||||
augroup END
|
||||
hi User1 guifg=DarkRed guibg=Black
|
||||
hi User2 guifg=White guibg=Black
|
||||
hi User3 guifg=Cyan guibg=Black
|
||||
hi User4 guifg=Orange guibg=Black
|
||||
hi User5 guifg=Red guibg=Black
|
||||
hi User6 guifg=Gray guibg=Black
|
||||
hi User7 guifg=Gray guibg=Black
|
||||
hi User8 guifg=DarkYellow guibg=Black
|
||||
|
||||
function! GitInfo()
|
||||
let git = fugitive#head()
|
||||
|
@ -77,7 +73,3 @@ function! PassiveStatus() abort
|
|||
endfunction
|
||||
|
||||
set statusline=%!ActiveStatus()
|
||||
" The colorscheme needs to be set here as it seems the autocmd group handling
|
||||
" color scheme must always be defined before the colorscheme is set else the
|
||||
" custom highlighting color groups for status line do not seem to take effect.
|
||||
colorscheme gruvbox8_hard
|
||||
|
|
Loading…
Reference in a new issue