11if exists (' g:OmniSharp_loaded' ) | finish | endif
22let g: OmniSharp_loaded = 1
33
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
85
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 )
99let g: OmniSharp_server_display_loading = get (g: , ' OmniSharp_server_display_loading' , 1 )
1010let g: OmniSharp_server_loading_timeout = get (g: , ' OmniSharp_server_loading_timeout' , 180 )
11-
12- " Use mono to start the roslyn server on *nix
1311let 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-
2412let 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 )
2814let g: OmniSharp_start_without_solution = get (g: , ' OmniSharp_start_without_solution' , 1 )
2915
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 )
3620let g: OmniSharp_runtests_parallel = get (g: , ' OmniSharp_runtests_parallel' , 1 )
3721let 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
4326
4427command ! - bar -nargs =? OmniSharpInstall call OmniSharp#Install (<f-args> )
4528command ! - bar -nargs =? OmniSharpOpenLog call OmniSharp#log#Open (<q-args> )
@@ -48,7 +31,7 @@ command! -bar -nargs=? OmniSharpOpenLog call OmniSharp#log#Open(<q-args>)
4831" Preserve backwards compatibility with older version g:OmniSharp_highlight_types
4932let g: OmniSharp_highlighting = get (g: , ' OmniSharp_highlighting' , get (g: , ' OmniSharp_highlight_types' , 2 ))
5033if g: OmniSharp_highlighting
51- augroup OmniSharp_HighlightTypes
34+ augroup OmniSharp_Highlighting
5235 autocmd !
5336 autocmd BufEnter *.cs,*.csx
5437 \ if ! pumvisible () && OmniSharp#util#CheckCapabilities () |
0 commit comments