Skip to content

Commit

Permalink
fix: use config.key_labels for cmdline trail as well (Fixes #108)
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 23, 2021
1 parent bea079f commit 1872dd8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/which-key/layout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ function Layout:trail()
if node and node.mapping and node.mapping.label then
step = self.options.icons.group .. node.mapping.label
end
if Config.options.key_labels[step] then
step = Config.options.key_labels[step]
end
table.insert(cmd_line, { step, "WhichKeyGroup" })
if i ~= #self.mapping.keys.nvim then
table.insert(cmd_line, { " " .. self.options.icons.breadcrumb .. " ", "WhichKeySeparator" })
Expand Down

0 comments on commit 1872dd8

Please sign in to comment.