]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Silenty ignore a file with empty file type
authorYegappan Lakshmanan <yegappan@yahoo.com>
Mon, 14 Aug 2023 14:37:54 +0000 (07:37 -0700)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Mon, 14 Aug 2023 14:37:54 +0000 (07:37 -0700)
autoload/lsp/buffer.vim

index 64ae27aafe641b1ab64c6a80f1ea366a45bc1e1a..7d5696abb98494a1beee40298d09b5d5f0232c2e 100644 (file)
@@ -165,7 +165,7 @@ enddef
 # Returns an empty dict if the server is not found or is not ready.
 export def CurbufGetServerChecked(feature: string = null_string): dict<any>
   var fname: string = @%
-  if fname->empty()
+  if fname->empty() || &filetype->empty()
     return {}
   endif