Revert "Don't attempt to auto pair on completion, if the completion is a"

This reverts commit 4fc3c19d1c.
This commit is contained in:
zztrieuzz 2022-03-06 19:29:03 +07:00
parent 7bc61885cc
commit 94d42cd1af
2 changed files with 0 additions and 2 deletions

View File

@ -17,7 +17,6 @@ local ignore_append = function(char, kinds, next_char, prev_char, item)
or (not utils.is_in_table(kinds, item.kind))
or (item.textEdit and item.textEdit.newText and item.textEdit.newText:match "[%(%[]")
or (item.insertText and item.insertText:match "[%(%[]")
or (item.insertTextFormat and item.insertTextFormat == cmp.lsp.InsertTextFormat.Snippet)
then
return true
end

View File

@ -32,7 +32,6 @@ _G.MPairs.completion_done = function()
and completion_item.textEdit.newText:match('[%(%[]')
)
or (completion_item.insertText and completion_item.insertText:match('[%(%[]'))
or (completion_item.insertTextFormat and completion_item.insertTextFormat == require('vim.lsp.protocol').InsertTextFormat[2])
then
return
end