1
1
if exists (' g:OmniSharp_loaded' ) | finish | endif
2
2
let g: OmniSharp_loaded = 1
3
3
4
- let g: OmniSharp_lookup_metadata = get (g: , ' OmniSharp_lookup_metadata' , 1 )
5
-
6
- " Default to `1`, except in cygwin defaults to `0`
7
- let g: OmniSharp_server_stdio = get (g: , ' OmniSharp_server_stdio' , ! has (' win32unix' ))
4
+ let g: OmniSharp_server_stdio = get (g: , ' OmniSharp_server_stdio' , ! has (' win32unix' )) " Default to 1, except in cygwin
8
5
6
+ " Server selection/initialization variables
7
+ let g: OmniSharp_autoselect_existing_sln = get (g: , ' OmniSharp_autoselect_existing_sln' , 0 )
8
+ let g: OmniSharp_prefer_global_sln = get (g: , ' OmniSharp_prefer_global_sln' , 0 )
9
9
let g: OmniSharp_server_display_loading = get (g: , ' OmniSharp_server_display_loading' , 1 )
10
10
let g: OmniSharp_server_loading_timeout = get (g: , ' OmniSharp_server_loading_timeout' , 180 )
11
-
12
- " Use mono to start the roslyn server on *nix
13
11
let g: OmniSharp_server_use_mono = get (g: , ' OmniSharp_server_use_mono' , 0 )
14
-
15
- let g: OmniSharp_open_quickfix = get (g: , ' OmniSharp_open_quickfix' , 1 )
16
-
17
- let g: OmniSharp_timeout = get (g: , ' OmniSharp_timeout' , 1 )
18
-
19
- " Default to `0`, except in cygwin
20
- let g: OmniSharp_translate_cygwin_wsl = get (g: , ' OmniSharp_translate_cygwin_wsl' , has (' win32unix' ))
21
-
22
- let g: OmniSharp_typeLookupInPreview = get (g: , ' OmniSharp_typeLookupInPreview' , 0 )
23
-
24
12
let g: OmniSharp_sln_list_index = get (g: , ' OmniSharp_sln_list_index' , -1 )
25
-
26
- let g: OmniSharp_autoselect_existing_sln = get (g: , ' OmniSharp_autoselect_existing_sln' , 0 )
27
- let g: OmniSharp_prefer_global_sln = get (g: , ' OmniSharp_prefer_global_sln' , 0 )
13
+ let g: OmniSharp_start_server = get (g: , ' OmniSharp_start_server' , 1 )
28
14
let g: OmniSharp_start_without_solution = get (g: , ' OmniSharp_start_without_solution' , 1 )
29
15
30
- " Automatically start server
31
- let g: OmniSharp_start_server = get (g: , ' OmniSharp_start_server' , get (g: , ' Omnisharp_start_server' , 1 ))
32
-
33
- let defaultlevel = g: OmniSharp_server_stdio ? ' info' : ' warning'
34
- let g: OmniSharp_loglevel = get (g: , ' OmniSharp_loglevel' , defaultlevel)
35
-
16
+ let g: OmniSharp_complete_documentation = get (g: , ' OmniSharp_complete_documentation' , get (g: , ' omnicomplete_fetch_full_documentation' , 1 ))
17
+ let g: OmniSharp_loglevel = get (g: , ' OmniSharp_loglevel' , g: OmniSharp_server_stdio ? ' info' : ' warning' )
18
+ let g: OmniSharp_lookup_metadata = get (g: , ' OmniSharp_lookup_metadata' , 1 )
19
+ let g: OmniSharp_open_quickfix = get (g: , ' OmniSharp_open_quickfix' , 1 )
36
20
let g: OmniSharp_runtests_parallel = get (g: , ' OmniSharp_runtests_parallel' , 1 )
37
21
let g: OmniSharp_runtests_echo_output = get (g: , ' OmniSharp_runtests_echo_output' , 1 )
38
-
39
- " Set to 1 when ultisnips is installed
40
- let g: OmniSharp_want_snippet = get (g: , ' OmniSharp_want_snippet' , 0 )
41
-
42
- let g: omnicomplete_fetch_full_documentation = get (g: , ' omnicomplete_fetch_full_documentation' , 1 )
22
+ let g: OmniSharp_timeout = get (g: , ' OmniSharp_timeout' , 1 )
23
+ let g: OmniSharp_translate_cygwin_wsl = get (g: , ' OmniSharp_translate_cygwin_wsl' , has (' win32unix' )) " Default to 0, except in cygwin
24
+ let g: OmniSharp_typeLookupInPreview = get (g: , ' OmniSharp_typeLookupInPreview' , 0 )
25
+ let g: OmniSharp_want_snippet = get (g: , ' OmniSharp_want_snippet' , 0 ) " Set to 1 when ultisnips is installed
43
26
44
27
command ! - bar -nargs =? OmniSharpInstall call OmniSharp#Install (<f-args> )
45
28
command ! - bar -nargs =? OmniSharpOpenLog call OmniSharp#log#Open (<q-args> )
@@ -49,7 +32,7 @@ command! -bar -bang OmniSharpStatus call OmniSharp#Status(<bang>0)
49
32
" Preserve backwards compatibility with older version g:OmniSharp_highlight_types
50
33
let g: OmniSharp_highlighting = get (g: , ' OmniSharp_highlighting' , get (g: , ' OmniSharp_highlight_types' , 2 ))
51
34
if g: OmniSharp_highlighting
52
- augroup OmniSharp_HighlightTypes
35
+ augroup OmniSharp_Highlighting
53
36
autocmd !
54
37
autocmd BufEnter *.cs,*.csx
55
38
\ if ! pumvisible () && OmniSharp#util#CheckCapabilities () |
0 commit comments