]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Rename "LspSetFileType" to "LspSetPopupFileType"
authorAndreas Louv <andreas@louv.dk>
Sun, 2 Apr 2023 20:53:50 +0000 (22:53 +0200)
committerAndreas Louv <andreas@louv.dk>
Sun, 2 Apr 2023 20:57:45 +0000 (22:57 +0200)
autoload/lsp/completion.vim

index 02f2ed5f5aae2f1edf55e073aa839d8bb4e8104c..b3e9c34b72150be963fde579967e85e69ac6aed8 100644 (file)
@@ -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<any>, 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,