plugin/lsp.vim | 2 +- diff --git a/plugin/lsp.vim b/plugin/lsp.vim index ce9c7040f04df1d3d67f00ea0df34cdc9dc6a51f..d89f3ae779d2df2388af5e6ed51c13ac3f07b79d 100644 --- a/plugin/lsp.vim +++ b/plugin/lsp.vim @@ -45,7 +45,7 @@ enddef augroup LSPAutoCmds au! - autocmd BufNewFile,BufReadPost * lsp.AddFile(expand('')->str2nr()) + autocmd BufNewFile,BufReadPost,FileType * lsp.AddFile(expand('')->str2nr()) # Note that when BufWipeOut is invoked, the current buffer may be different # from the buffer getting wiped out. autocmd BufWipeOut * lsp.RemoveFile(expand('')->str2nr())