This commit is contained in:
hrsh7th
2022-01-15 18:56:29 +09:00
parent bce1b2d780
commit 098182e2c2
3 changed files with 11 additions and 4 deletions

View File

@@ -75,6 +75,13 @@ keymap.backspace = function(count)
return table.concat(keys, '')
end
---Update indentkeys.
---@param expr string
---@return string
keymap.indentkeys = function(expr)
return string.format(keymap.t('<Cmd>set indentkeys=%s<CR>'), expr and vim.fn.escape(expr, '| \t\\') or '')
end
---Return two key sequence are equal or not.
---@param a string
---@param b string