]> Sergey Matveev's repositories - vim-lsp.git/blobdiff - plugin/lsp.vim
Diags are not highlighted after a buffer is reloaded
[vim-lsp.git] / plugin / lsp.vim
index 2de7df5b1bcd39d0171d92e3cec8433f860c3ffd..382ae49e49edcc5c925a008a6250c0e8a314a34c 100644 (file)
@@ -49,6 +49,7 @@ augroup LSPAutoCmds
   # Note that when BufWipeOut is invoked, the current buffer may be different
   # from the buffer getting wiped out.
   autocmd BufWipeOut * lsp.RemoveFile(expand('<abuf>')->str2nr())
+  autocmd BufWinEnter * lsp.BufferLoadedInWin(expand('<abuf>')->str2nr())
 augroup END
 
 # TODO: Is it needed to shutdown all the LSP servers when exiting Vim?