Fix #204
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('<C-f>'), 'n', callback)
|
return keymap.feedkeys(keymap.t('<Plug>(cmp-autoindent)'), 'n', callback)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -15,3 +15,5 @@ vim.cmd [[
|
|||||||
augroup END
|
augroup END
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
vim.cmd [[inoremap <silent> <Plug>(cmp-autoindent) <C-o>:normal!==<CR>]]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user