From cd078e7954c02dd731930a56a1a508688ceefc91 Mon Sep 17 00:00:00 2001 From: Andreas Louv Date: Sun, 2 Apr 2023 22:53:50 +0200 Subject: [PATCH] Rename "LspSetFileType" to "LspSetPopupFileType" --- autoload/lsp/completion.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index 02f2ed5..b3e9c34 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -407,7 +407,7 @@ enddef # If the completion popup documentation window displays 'markdown' content, # then set the 'filetype' to 'lspgfm'. -def LspSetFileType() +def LspSetPopupFileType() var item = v:event.completed_item if !item->has_key('user_data') || item.user_data->empty() return @@ -471,7 +471,7 @@ def AddAutocmds(lspserver: dict, bnr: number) acmds->add({bufnr: bnr, event: 'CompleteChanged', group: 'LSPBufferAutocmds', - cmd: 'LspSetFileType()'}) + cmd: 'LspSetPopupFileType()'}) # Execute LSP server initiated text edits after completion acmds->add({bufnr: bnr, -- 2.48.1