* Fix #516

* Fix

* Fix and tests

* fmt lint
This commit is contained in:
hrsh7th
2021-11-14 02:47:31 +09:00
committed by GitHub
parent e61f7c5acc
commit 753f5b7c92
10 changed files with 173 additions and 50 deletions

View File

@@ -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