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 sessionoptions-=blank
|
||||||
set grepprg=rg\ --vimgrep
|
set grepprg=rg\ --vimgrep
|
||||||
|
|
||||||
|
colorscheme gruvbox8_hard
|
||||||
|
|
||||||
" --------------------------- Key Bindings -----------------------------------
|
" --------------------------- Key Bindings -----------------------------------
|
||||||
" Allow saving of files as sudo when I forgot to start vim using sudo
|
" Allow saving of files as sudo when I forgot to start vim using sudo
|
||||||
cmap w!! w !sudo tee > /dev/null %
|
cmap w!! w !sudo tee > /dev/null %
|
||||||
|
|
|
@ -4,18 +4,14 @@ augroup UserStatusline
|
||||||
autocmd WinLeave * setlocal statusline=%!PassiveStatus()
|
autocmd WinLeave * setlocal statusline=%!PassiveStatus()
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
augroup UserStatusLineColors
|
hi User1 guifg=DarkRed guibg=Black
|
||||||
autocmd!
|
hi User2 guifg=White guibg=Black
|
||||||
autocmd ColorScheme *
|
hi User3 guifg=Cyan guibg=Black
|
||||||
\ hi User1 guifg=DarkRed guibg=Black |
|
hi User4 guifg=Orange guibg=Black
|
||||||
\ hi User2 guifg=White guibg=Black |
|
hi User5 guifg=Red guibg=Black
|
||||||
\ hi User3 guifg=Cyan guibg=Black |
|
hi User6 guifg=Gray guibg=Black
|
||||||
\ hi User4 guifg=Orange guibg=Black |
|
hi User7 guifg=Gray guibg=Black
|
||||||
\ hi User5 guifg=Red guibg=Black |
|
hi User8 guifg=DarkYellow guibg=Black
|
||||||
\ hi User6 guifg=Gray guibg=Black |
|
|
||||||
\ hi User7 guifg=Gray guibg=Black |
|
|
||||||
\ hi User8 guifg=DarkYellow guibg=Black
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
function! GitInfo()
|
function! GitInfo()
|
||||||
let git = fugitive#head()
|
let git = fugitive#head()
|
||||||
|
@ -77,7 +73,3 @@ function! PassiveStatus() abort
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
set statusline=%!ActiveStatus()
|
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