Fix #321
This commit is contained in:
@@ -301,8 +301,13 @@ custom_entries_view._insert = setmetatable({
|
|||||||
local release = require('cmp').suspend()
|
local release = require('cmp').suspend()
|
||||||
feedkeys.call('', '', function()
|
feedkeys.call('', '', function()
|
||||||
local cursor = api.get_cursor()
|
local cursor = api.get_cursor()
|
||||||
|
local keys = {}
|
||||||
|
table.insert(keys, keymap.t('<Cmd>set indentkeys=<CR>'))
|
||||||
|
table.insert(keys, keymap.backspace(1 + cursor[2] - self.offset))
|
||||||
|
table.insert(keys, word)
|
||||||
|
table.insert(keys, keymap.t('<Cmd>set indentkeys=%s<CR>'):format(vim.fn.escape(vim.bo.indentkeys, ' "|\\')))
|
||||||
feedkeys.call(
|
feedkeys.call(
|
||||||
keymap.backspace(1 + cursor[2] - self.offset) .. word,
|
table.concat(keys, ''),
|
||||||
'int',
|
'int',
|
||||||
vim.schedule_wrap(function()
|
vim.schedule_wrap(function()
|
||||||
this.pending = false
|
this.pending = false
|
||||||
|
|||||||
Reference in New Issue
Block a user