Skip to content

Commit a24293b

Browse files
committed
Update the server buffer on BufEnter,TextChanged
1 parent 67713d6 commit a24293b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ftplugin/cs/OmniSharp.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ augroup OmniSharp_FileType
1212
\ endif
1313

1414
autocmd CompleteDone <buffer> call OmniSharp#actions#complete#ExpandSnippet()
15+
16+
autocmd TextChanged <buffer> call OmniSharp#actions#buffer#Update()
1517
augroup END
1618

1719
setlocal omnifunc=OmniSharp#Complete
@@ -20,6 +22,8 @@ if get(g:, 'OmniSharp_start_server', 0)
2022
call OmniSharp#StartServerIfNotRunning()
2123
endif
2224

25+
call OmniSharp#actions#buffer#Update()
26+
2327
command! -buffer -bar OmniSharpRestartAllServers call OmniSharp#RestartAllServers()
2428
command! -buffer -bar OmniSharpRestartServer call OmniSharp#RestartServer()
2529
command! -buffer -bar -nargs=? -complete=file OmniSharpStartServer call OmniSharp#StartServer(<q-args>)

0 commit comments

Comments
 (0)