From 11991396e4c52128f602ba20a79699ad314f128f Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 21 Jul 2024 10:53:49 +0200 Subject: [PATCH] fix(entry): check for textEdit.newText for getting word --- lua/neocomplete/entry.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/neocomplete/entry.lua b/lua/neocomplete/entry.lua index 9ec336a..6f84c6e 100644 --- a/lua/neocomplete/entry.lua +++ b/lua/neocomplete/entry.lua @@ -50,7 +50,7 @@ end function Entry:get_insert_word() local completion_item = self.completion_item local text - if completion_item.textEdit then + if completion_item.textEdit and completion_item.textEdit.newText then text = completion_item.textEdit.newText elseif completion_item.insertText then text = completion_item.insertText