Skip to content

Commit 025af24

Browse files
authored
Merge pull request #2672 from bhcleek/lsp/bdelete
lsp: delete lsp buffer autocmds on BufDelete
2 parents 0aeb9e5 + 5aef4ff commit 025af24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

autoload/go/lsp.vim

+1
Original file line numberDiff line numberDiff line change
@@ -1219,6 +1219,7 @@ function! s:highlightMatches(errorMatches, warningMatches) abort
12191219
" redisplayed in an existing window: e.g. :edit,
12201220
augroup vim-go-diagnostics
12211221
autocmd! * <buffer>
1222+
autocmd BufDelete <buffer> autocmd! vim-go-diagnostics * <buffer=abuf>
12221223
autocmd BufWinEnter <buffer> nested call s:highlightMatches(b:go_diagnostic_matches.errors, b:go_diagnostic_matches.warnings)
12231224
augroup end
12241225
endfunction

0 commit comments

Comments
 (0)