diff --git a/lua/legendary/ui/format.lua b/lua/legendary/ui/format.lua index 07f9d01..4edd9d4 100644 --- a/lua/legendary/ui/format.lua +++ b/lua/legendary/ui/format.lua @@ -38,11 +38,15 @@ function M.default_format(item) item.description, } elseif Toolbox.is_function(item) then + -- stylua: ignore start return { - Config.icons.fn, + item--[[@as keymap ]]:modeSwitched() + and table.concat(item--[[@as Keymap]]:modes(), ', ') + or Config.icons.fn, '', item.description, } + -- stylua: ignore end elseif Toolbox.is_itemgroup(item) then return { item.icon or Config.icons.itemgroup,