@@ -319,13 +319,17 @@ custom_entries_view._insert = setmetatable({
|
||||
local release = require('cmp').suspend()
|
||||
feedkeys.call('', '', function()
|
||||
local cursor = api.get_cursor()
|
||||
feedkeys.call(keymap.backspace(1 + cursor[2] - self.offset) .. word, 'int', vim.schedule_wrap(function()
|
||||
this.pending = false
|
||||
release()
|
||||
end))
|
||||
feedkeys.call(
|
||||
keymap.backspace(1 + cursor[2] - self.offset) .. word,
|
||||
'int',
|
||||
vim.schedule_wrap(function()
|
||||
this.pending = false
|
||||
release()
|
||||
end)
|
||||
)
|
||||
end)
|
||||
end
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
return custom_entries_view
|
||||
|
||||
@@ -66,7 +66,7 @@ ghost_text_view.text_gen = function(self, line, cursor_col)
|
||||
if nchars > 0 then
|
||||
text = string.sub(word, vim.str_byteindex(word, word_clen - nchars) + 1)
|
||||
else
|
||||
text = ""
|
||||
text = ''
|
||||
end
|
||||
return text
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user