Fix #443
This commit is contained in:
@@ -90,6 +90,16 @@ keymap.backspace = function(count)
|
||||
return table.concat(keys, '')
|
||||
end
|
||||
|
||||
---Create autoindent keys
|
||||
---@return string
|
||||
keymap.autoindent = function()
|
||||
local keys = {}
|
||||
table.insert(keys, keymap.t('<Cmd>setlocal indentkeys+=!^F<CR>'))
|
||||
table.insert(keys, keymap.t('<C-f>'))
|
||||
table.insert(keys, keymap.t('<Cmd>setlocal indentkeys=%s<CR>'):format(vim.bo.indentkeys))
|
||||
return table.concat(keys, '')
|
||||
end
|
||||
|
||||
---Return two key sequence are equal or not.
|
||||
---@param a string
|
||||
---@param b string
|
||||
|
||||
Reference in New Issue
Block a user