Skip to content

Commit

Permalink
feat: use textEditText as fallback for textEdit
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Oct 16, 2024
1 parent 9b9647b commit abcb2a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/blink/cmp/accept/text-edits.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ end

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

local current_line = vim.api.nvim_win_get_cursor(0)[1]
local current_col = vim.api.nvim_win_get_cursor(0)[2]
Expand Down

0 comments on commit abcb2a0

Please sign in to comment.