fix(mini.files): description for g. keybinding in mini.files (#2693)
If you press `g` in a mini.files menu, the `.` key shows up but doesn't have a description. This adds a desc attribute to the binding so the menu shows a correct description.
This commit is contained in:
1 parent
843032ef1c
commit
991523431f
1 file changed
+1
-1
@@ -50,7 +50,7 @@ return {
|
|||||||
callback = function(args)
|
callback = function(args)
|
||||||
local buf_id = args.data.buf_id
|
local buf_id = args.data.buf_id
|
||||||
-- Tweak left-hand side of mapping to your liking
|
-- Tweak left-hand side of mapping to your liking
|
||||||
vim.keymap.set("n", "g.", toggle_dotfiles, { buffer = buf_id })
|
vim.keymap.set("n", "g.", toggle_dotfiles, { buffer = buf_id, desc = "Toggle hidden files" })
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user