This commit is contained in:
hrsh7th
2022-10-15 15:16:27 +09:00
parent bf1b112615
commit 69476c9e06
4 changed files with 8 additions and 10 deletions

View File

@@ -239,14 +239,14 @@ entry.get_vim_item = function(self, suggest_offset)
local is_expandable = false
local expandable_indicator = config.get().formatting.expandable_indicator
if #(misc.safe(completion_item.additionalTextEdits) or {}) > 0 then
is_expandable = true
is_expandable = true
elseif completion_item.insertTextFormat == types.lsp.InsertTextFormat.Snippet then
is_expandable = self:get_insert_text() ~= word
is_expandable = self:get_insert_text() ~= word
elseif completion_item.kind == types.lsp.CompletionItemKind.Snippet then
is_expandable = true
is_expandable = true
end
if expandable_indicator and is_expandable then
abbr = abbr .. '~'
abbr = abbr .. '~'
end
-- append delta text