From e8d18acfb0e385d48ac84f45fb50459907768924 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Mon, 14 Aug 2023 07:37:54 -0700 Subject: [PATCH] Silenty ignore a file with empty file type --- autoload/lsp/buffer.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.48.1