mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
fix(keys): replace term codes to calculate ids
This commit is contained in:
parent
9223c1aa20
commit
d65a3d6755
2 changed files with 19 additions and 1 deletions
|
@ -19,7 +19,7 @@ function M.parse(value)
|
|||
local ret = vim.deepcopy(value)
|
||||
ret = type(ret) == "string" and { ret } or ret --[[@as LazyKeys]]
|
||||
ret.mode = ret.mode or "n"
|
||||
ret.id = (ret[1] or "")
|
||||
ret.id = vim.api.nvim_replace_termcodes(ret[1] or "", true, true, true)
|
||||
if ret.mode then
|
||||
local mode = ret.mode
|
||||
if type(mode) == "table" then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue