autoload/lsp/buffer.vim | 2 +- diff --git a/autoload/lsp/buffer.vim b/autoload/lsp/buffer.vim index 64ae27aafe641b1ab64c6a80f1ea366a45bc1e1a..7d5696abb98494a1beee40298d09b5d5f0232c2e 100644 --- a/autoload/lsp/buffer.vim +++ b/autoload/lsp/buffer.vim @@ -165,7 +165,7 @@ # it is running and is ready. # Returns an empty dict if the server is not found or is not ready. export def CurbufGetServerChecked(feature: string = null_string): dict var fname: string = @% - if fname->empty() + if fname->empty() || &filetype->empty() return {} endif