autoload/lsp/completion.vim | 4 ++-- diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index 02f2ed5f5aae2f1edf55e073aa839d8bb4e8104c..b3e9c34b72150be963fde579967e85e69ac6aed8 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 @@ acmds->add({bufnr: bnr, event: 'CompleteChanged', group: 'LSPBufferAutocmds', - cmd: 'LspSetFileType()'}) + cmd: 'LspSetPopupFileType()'}) # Execute LSP server initiated text edits after completion acmds->add({bufnr: bnr,