From 7f121ab292a0e18ed14593f51f0368a28d4b6a3b Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Tue, 29 Nov 2022 22:32:52 -0500 Subject: [PATCH] Add support for info error marker in vimrc --- vimrc | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/vimrc b/vimrc index 9a3425d..1bd68ef 100644 --- a/vimrc +++ b/vimrc @@ -62,7 +62,7 @@ endfunction " file in the root folder that you want it applied to. " " Some variables cannot be customized in an .lvimrc because their value is used -" by settings in this file when its sourced. These have been flagged with a note. +" by settings in this file when it's sourced. These have been flagged with a note. " " Also take note that an .lvimrc has precedence because it's loaded after this " and the private vimrc. @@ -175,7 +175,7 @@ Plug 'majutsushi/tagbar' " Display ctags in a window, ordered by sc Plug 'tommcdo/vim-lion' " For text alignment, use gl= and gL= Plug 'tpope/tpope-vim-abolish' " Easily search for, substitute, and abbreviate multiple variants of a word. Add them to `vim/after/plugin/abolish.vim` Plug 'vim-scripts/AnsiEsc.vim' " Ansi escape sequences concealed, but highlighted as specified. -Plug 'mh21/errormarker.vim' " Build error highlighting (requires skywind3000/asyncrun.vim). +Plug 'sir-pinecone/errormarker.vim' " Build error highlighting (requires skywind3000/asyncrun.vim). Plug 'skywind3000/asyncrun.vim' " Async commands. Plug 'nelstrom/vim-qargs' " For the GlobalReplaceIt function (i.e. search and replace). @@ -1005,6 +1005,7 @@ set statusline=%<%f\ (%{&ft})\ %-4(%m%)%=%-19(%3l,%02c%03V%) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " COLORS """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + exec "autocmd ColorScheme " . g:campo_dark_theme . " call ReloadRainbow()" exec "autocmd ColorScheme " . g:campo_light_theme . " call ReloadRainbow()" @@ -1108,10 +1109,18 @@ let g:asyncrun_auto = "make" " Error and warning gutter characters. let errormarker_errortext = "E" let errormarker_warningtext = "W" +let errormarker_infotext = "I" + +" Gutter character colors. See color file for the group definition. +let errormarker_errortextgroup = "BuildError" +let errormarker_warningtextgroup = "BuildWarn" +let errormarker_infotextgroup = "BuildInfo" + +" Colors for the marked lines. See color file for the group definition. +let errormarker_errorgroup = "BuildError" +let errormarker_warninggroup = "BuildWarn" +let errormarker_infogroup = "BuildInfo" -" Error and warning gutter character colors. See color file for the group definition. -let errormarker_errortextgroup = "ErrorMsg" -let errormarker_warningtextgroup = "Notices" """"""""""""""""""""""""" " Custom error formats @@ -1121,7 +1130,7 @@ let errormarker_warningtextgroup = "Notices" " This will print the valid entries. You'll know parsing is correct when the " entries have a type, line num, error message, etc. -function! s:ShowErrorEntries() +function! ShowErrorEntries() " Prints out valid quickfix errors. redraw! for l:d in getqflist() @@ -1130,7 +1139,7 @@ function! s:ShowErrorEntries() endif endfor endfunction -command -nargs=0 ShowErrorEntries call s:ShowErrorEntries() +command -nargs=0 ShowErrorEntries call ShowErrorEntries() " Jai