aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-07-07 03:21:56 +0200
committerWilliam Boman <william@redwill.se>2022-07-07 03:21:56 +0200
commitd63db599729905568ee1e775d686c5215fb429f8 (patch)
tree10dc69533ec013cdb66d302d0007a94d9fa778b6 /lua
parentfeat(ui): add sticky cursor to installing and queued packages (diff)
downloadmason-d63db599729905568ee1e775d686c5215fb429f8.tar
mason-d63db599729905568ee1e775d686c5215fb429f8.tar.gz
mason-d63db599729905568ee1e775d686c5215fb429f8.tar.bz2
mason-d63db599729905568ee1e775d686c5215fb429f8.tar.lz
mason-d63db599729905568ee1e775d686c5215fb429f8.tar.xz
mason-d63db599729905568ee1e775d686c5215fb429f8.tar.zst
mason-d63db599729905568ee1e775d686c5215fb429f8.zip
fix(ui): display correct keybinding for language filter
Diffstat (limited to 'lua')
-rw-r--r--lua/mason/ui/components/language-filter.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/mason/ui/components/language-filter.lua b/lua/mason/ui/components/language-filter.lua
index a3069272..8b3060f1 100644
--- a/lua/mason/ui/components/language-filter.lua
+++ b/lua/mason/ui/components/language-filter.lua
@@ -1,5 +1,6 @@
local Ui = require "mason.core.ui"
local p = require "mason.ui.palette"
+local settings = require "mason.settings"
---@param state InstallerUiState
return function(state)
@@ -22,7 +23,9 @@ return function(state)
Ui.HlTextNode {
{
p.Bold "Language Filter:",
- p.Comment " press <C-f> to apply filter",
+ p.Comment(
+ (" press %s to apply filter"):format(settings.current.ui.keymaps.apply_language_filter)
+ ),
},
},
}