Compare commits

..

3 Commits

View File

@ -163,7 +163,6 @@ let g:vimspector_install_gadgets = [ 'debugpy', 'vscode-go', 'CodeLLDB', 'vscode
" Theme " Theme
"""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""
"colorscheme gruvbox "colorscheme gruvbox
"colorscheme default
colorscheme dracula colorscheme dracula
let g:gruvbox_invert_selection='0' let g:gruvbox_invert_selection='0'
let g:gruvbox_contrast_dark = 'hard' let g:gruvbox_contrast_dark = 'hard'
@ -181,7 +180,6 @@ hi DiffText cterm=BOLD ctermfg=NONE ctermbg=23
" columne " columne
set textwidth=80 set textwidth=80
set colorcolumn=80 set colorcolumn=80
" highlight ColorColumn ctermbg=235
highlight ColorColumn ctermbg=236 highlight ColorColumn ctermbg=236
"""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""
@ -196,14 +194,29 @@ function! StatuslineGit()
return strlen(l:branchname) > 0?' '.l:branchname.' ':'' return strlen(l:branchname) > 0?' '.l:branchname.' ':''
endfunction endfunction
function! StatusDiagnostic() abort
let info = get(b:, 'coc_diagnostic_info', {})
if empty(info) | return '' | endif
let msgs = []
if get(info, 'error', 0)
call add(msgs, 'E' . info['error'])
endif
if get(info, 'warning', 0)
call add(msgs, 'W' . info['warning'])
endif
return join(msgs, ' '). ' ' . get(g:, 'coc_status', '')
endfunction
set statusline= set statusline=
set statusline+=%#IncSearch# set statusline+=%#IncSearch#
set statusline+=\ %y set statusline+=%{&filetype!=#''?'\ \ ['.&filetype.']\ ':'\ '}
set statusline+=\ %m set statusline+=%{&modified?'[+]\ ':''}
set statusline+=\ %r
set statusline+=%#CursorLineNr# set statusline+=%#CursorLineNr#
set statusline+=\ %F set statusline+=\ %F
set statusline+=%= "Right side settings set statusline+=%= "Right side settings
set statusline+=%#warningmsg#
set statusline+=%{StatusDiagnostic()!=#''?'\ '.StatusDiagnostic():''}
set statusline+=%#CursorLineNr#
set statusline+=%{StatuslineGit()} set statusline+=%{StatuslineGit()}
set statusline+=%#Search# set statusline+=%#Search#
set statusline+=\ %l/%L set statusline+=\ %l/%L