Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions autoload/lsp/completion.vim
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,8 @@ def LspResolve()
ShowCompletionDocumentation(item.user_data)
endif
endif

LspSetPopupFileType()
enddef

# Configure the non-lazy documentation popup
Expand All @@ -609,6 +611,8 @@ def LspCompleteConfigurePopup()
return
endif
id->popup_setoptions(opt.PopupConfigure('Completion', {}))

LspSetPopupFileType()
enddef

# If the completion popup documentation window displays "markdown" content,
Expand Down Expand Up @@ -726,12 +730,6 @@ export def BufferInit(lspserver: dict<any>, bnr: number, ftype: string)
cmd: 'LspCompleteConfigurePopup()'})
endif

acmds->add({bufnr: bnr,
replace: true,
event: 'CompleteChanged',
group: 'LSPBufferAutocmds',
cmd: 'LspSetPopupFileType()'})

# Execute LSP server initiated text edits after completion
acmds->add({bufnr: bnr,
replace: true,
Expand Down