From abcb2a0dab207e03d382acf62074f639a3572e20 Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Wed, 16 Oct 2024 12:23:51 -0400 Subject: [PATCH] feat: use textEditText as fallback for textEdit --- lua/blink/cmp/accept/text-edits.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/blink/cmp/accept/text-edits.lua b/lua/blink/cmp/accept/text-edits.lua index b310b9a5..f6a02f9b 100644 --- a/lua/blink/cmp/accept/text-edits.lua +++ b/lua/blink/cmp/accept/text-edits.lua @@ -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]