From: Andreas Louv Date: Sun, 2 Apr 2023 20:53:50 +0000 (+0200) Subject: Rename "LspSetFileType" to "LspSetPopupFileType" X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=cd078e7954c02dd731930a56a1a508688ceefc91;p=vim-lsp.git Rename "LspSetFileType" to "LspSetPopupFileType" --- 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,