From: Yegappan Lakshmanan Date: Mon, 14 Aug 2023 14:37:54 +0000 (-0700) Subject: Silenty ignore a file with empty file type X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=e8d18acfb0e385d48ac84f45fb50459907768924;p=vim-lsp.git Silenty ignore a file with empty file type --- diff --git a/autoload/lsp/buffer.vim b/autoload/lsp/buffer.vim index 64ae27a..7d5696a 100644 --- a/autoload/lsp/buffer.vim +++ b/autoload/lsp/buffer.vim @@ -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 var fname: string = @% - if fname->empty() + if fname->empty() || &filetype->empty() return {} endif