Skip to content

Commit abcb2a0

Browse files
committed
feat: use textEditText as fallback for textEdit
1 parent 9b9647b commit abcb2a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/blink/cmp/accept/text-edits.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ end
3939

4040
-- todo: doesnt work when the item contains characters not included in the context regex
4141
function text_edits.guess_text_edit(bufnr, item)
42-
local word = item.insertText or item.label
42+
local word = item.textEditText or item.insertText or item.label
4343

4444
local current_line = vim.api.nvim_win_get_cursor(0)[1]
4545
local current_col = vim.api.nvim_win_get_cursor(0)[2]

0 commit comments

Comments
 (0)