Fix feeding autoindent keys

This commit is contained in:
hrsh7th
2021-09-16 15:53:48 +09:00
parent 12ed912c36
commit 620eea94d3

View File

@@ -232,7 +232,7 @@ core.autoindent = function(event, callback)
if prefix then
for _, key in ipairs(vim.split(vim.bo.indentkeys, ',')) do
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