Skip to content

Commit bbdbe8e

Browse files
nvim: setup diagnostic
1 parent 9d47cd9 commit bbdbe8e

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
lua << EOF
2+
vim.diagnostic.config({
3+
virtual_text = false, -- diagnostic shows up inline with code statment
4+
virtual_lines = {current_line = true}, -- diagnostic shows up for current line
5+
underline = false,
6+
update_in_insert = false, -- Do not update diagnostic in Insert Mode.
7+
severity_sort = false, -- Do not sort diagnostic by severity
8+
})
9+
EOF

.config/cvim/init/init.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ let g:commonFeatureFlags = {
3939
\ 'keymap': F_FeatureMatrix(g:vimDistribution, v:true, v:true, v:true, v:false),
4040
\ 'ui_enhancement': F_FeatureMatrix(g:vimDistribution, v:true, v:true, v:true, v:false),
4141
\ 'grep': F_FeatureMatrix(g:vimDistribution, v:true, v:true, v:true, v:false),
42+
\ 'diagnostic': F_FeatureMatrix(g:vimDistribution, v:true, v:true, v:true, v:false),
4243
\ 'local_vimrc': F_FeatureMatrix(g:vimDistribution, v:true, v:true, v:false, v:false),
4344
\}
4445

@@ -745,6 +746,7 @@ call F_FeatureLoad(g:commonFeatureFlags, g:vimDistribution, "mapping_timeout")
745746
call F_FeatureLoad(g:commonFeatureFlags, g:vimDistribution, "keymap")
746747
call F_FeatureLoad(g:commonFeatureFlags, g:vimDistribution, "ui_enhancement")
747748
call F_FeatureLoad(g:commonFeatureFlags, g:vimDistribution, "grep")
749+
call F_FeatureLoad(g:commonFeatureFlags, g:vimDistribution, "diagnostic")
748750
call F_FeatureLoad(g:commonFeatureFlags, g:vimDistribution, "local_vimrc")
749751

750752
" Post setup

0 commit comments

Comments
 (0)