LSP 3.17 (#1306)
* 3.17 * PositionEncodingKind * Implement PositionEncodingKind * Remove luarc.json
This commit is contained in:
@@ -83,6 +83,21 @@ keymap.backspace = function(count)
|
||||
return table.concat(keys, '')
|
||||
end
|
||||
|
||||
---Create delete keys.
|
||||
---@param count string|integer
|
||||
---@return string
|
||||
keymap.delete = function(count)
|
||||
if type(count) == 'string' then
|
||||
count = vim.fn.strchars(count, true)
|
||||
end
|
||||
if count <= 0 then
|
||||
return ''
|
||||
end
|
||||
local keys = {}
|
||||
table.insert(keys, keymap.t(string.rep('<Del>', count)))
|
||||
return table.concat(keys, '')
|
||||
end
|
||||
|
||||
---Update indentkeys.
|
||||
---@param expr? string
|
||||
---@return string
|
||||
|
||||
Reference in New Issue
Block a user