mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(compat): fixes for Neovim < 0.10
This commit is contained in:
parent
b13eaf6bd9
commit
33fbb309f8
5 changed files with 20 additions and 7 deletions
|
@ -250,7 +250,7 @@ function M.open(opts)
|
|||
return a[1] < b[1]
|
||||
end)
|
||||
for _, key in ipairs(ret.keys) do
|
||||
local keymap = vim.fn.keytrans(vim.keycode(key[1]))
|
||||
local keymap = vim.fn.keytrans(Snacks.util.keycode(key[1]))
|
||||
table.insert(ret.opts.footer, { " " })
|
||||
table.insert(ret.opts.footer, { " " .. keymap .. " ", "SnacksScratchKey" })
|
||||
table.insert(ret.opts.footer, { " " .. (key.desc or keymap) .. " ", "SnacksScratchDesc" })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue