Skip to content

Commit

Permalink
Add option to disable error position highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
maralla committed Dec 5, 2018
1 parent ea6e0c8 commit 4c8c742
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autoload/validator/notifier.vim
Original file line number Diff line number Diff line change
@@ -14,7 +14,10 @@ endfunction


function! s:hl_position(lnum, col)
return matchadd('ValidatorPosition', '\%'.a:lnum.'l\%'.a:col.'v')
if get(g:, 'validator_enable_error_position_hightlight', 0)
return matchadd('ValidatorPosition', '\%'.a:lnum.'l\%'.a:col.'v')
endif
return -1
endfunction


0 comments on commit 4c8c742

Please sign in to comment.