This repository was archived by the owner on Jul 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdiagnostic.vim
More file actions
60 lines (44 loc) · 1.65 KB
/
diagnostic.vim
File metadata and controls
60 lines (44 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
if exists('g:loaded_diagnostic') | finish | endif
let s:save_cpo = &cpo
set cpo&vim
command! PrevDiagnostic lua require'jumpLoc'.jumpPrevLocation()
command! PrevDiagnosticCycle lua require'jumpLoc'.jumpPrevLocationCycle()
command! NextDiagnostic lua require'jumpLoc'.jumpNextLocation()
command! NextDiagnosticCycle lua require'jumpLoc'.jumpNextLocationCycle()
command! OpenDiagnostic lua require'jumpLoc'.openDiagnostics()
command! FirstDiagnostic lua require'jumpLoc'.jumpFirstLocation()
command! LastDiagnostic lua require'jumpLoc'.jumpLastLocation()
" lua require'diagnostic'.modifyCallback()
if ! exists('g:diagnostic_enable_virtual_text')
let g:diagnostic_enable_virtual_text = 0
endif
if ! exists('g:diagnostic_virtual_text_prefix')
let g:diagnostic_virtual_text_prefix = '■'
endif
if ! exists('g:diagnostic_trimmed_virtual_text') || g:diagnostic_trimmed_virtual_text < 0
let g:diagnostic_trimmed_virtual_text = v:null
endif
if ! exists('g:space_before_virtual_text') || g:space_before_virtual_text <= 0
let g:space_before_virtual_text = 1
endif
if ! exists('g:diagnostic_show_sign')
let g:diagnostic_show_sign = 1
endif
if ! exists('g:diagnostic_sign_priority')
let g:diagnostic_sign_priority = 20
endif
if ! exists('g:diagnostic_insert_delay')
let g:diagnostic_insert_delay = 0
endif
if ! exists('g:diagnostic_auto_popup_while_jump')
let g:diagnostic_auto_popup_while_jump = 1
endif
if ! exists('g:diagnostic_level')
let g:diagnostic_level = 'Hint'
endif
if ! exists('g:diagnostic_enable_location_list')
let g:diagnostic_enable_location_list = 1
endif
let &cpo = s:save_cpo
unlet s:save_cpo
let g:loaded_diagnostic = 1