Fix feeding autoindent keys
This commit is contained in:
@@ -232,7 +232,7 @@ core.autoindent = function(event, callback)
|
|||||||
if prefix then
|
if prefix then
|
||||||
for _, key in ipairs(vim.split(vim.bo.indentkeys, ',')) do
|
for _, key in ipairs(vim.split(vim.bo.indentkeys, ',')) do
|
||||||
if vim.tbl_contains({ '=' .. prefix, '0=' .. prefix }, key) then
|
if vim.tbl_contains({ '=' .. prefix, '0=' .. prefix }, key) then
|
||||||
return keymap.feedkeys(keymap.t('<Plug>(cmp-autoindent)'), 'n', callback)
|
return keymap.feedkeys(keymap.t('<Plug>(cmp-autoindent)'), '', callback)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user