aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-08-22 00:10:54 +0200
committerGitHub <noreply@github.com>2022-08-22 00:10:54 +0200
commit13299c44f1b3d41bb51c85fee35e45f999b13ba7 (patch)
treefb02b91f410ad6a79b90430b163b8e0545b22a3e /lua
parentfix(ui)!: change filetype from "mason.nvim" to "mason" (#317) (diff)
downloadmason-13299c44f1b3d41bb51c85fee35e45f999b13ba7.tar
mason-13299c44f1b3d41bb51c85fee35e45f999b13ba7.tar.gz
mason-13299c44f1b3d41bb51c85fee35e45f999b13ba7.tar.bz2
mason-13299c44f1b3d41bb51c85fee35e45f999b13ba7.tar.lz
mason-13299c44f1b3d41bb51c85fee35e45f999b13ba7.tar.xz
mason-13299c44f1b3d41bb51c85fee35e45f999b13ba7.tar.zst
mason-13299c44f1b3d41bb51c85fee35e45f999b13ba7.zip
fix(ui): use `g?` to toggle help instead of `?` (#326)
The `?` keymap has annoyed me personally for a long time. I don't like overriding backwards search, it's far more useful than toggling the help view.
Diffstat (limited to 'lua')
-rw-r--r--lua/mason/ui/components/header.lua4
-rw-r--r--lua/mason/ui/instance.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/lua/mason/ui/components/header.lua b/lua/mason/ui/components/header.lua
index 52aacc7d..484753ae 100644
--- a/lua/mason/ui/components/header.lua
+++ b/lua/mason/ui/components/header.lua
@@ -13,8 +13,8 @@ return function(state)
}),
Ui.When(
state.view.is_showing_help,
- { p.none " press ", p.highlight_secondary "?", p.none " for package list" },
- { p.none "press ", p.highlight "?", p.none " for help" }
+ { p.none " press ", p.highlight_secondary "g?", p.none " for package list" },
+ { p.none "press ", p.highlight "g?", p.none " for help" }
),
{ p.Comment "https://github.com/williamboman/mason.nvim" },
},
diff --git a/lua/mason/ui/instance.lua b/lua/mason/ui/instance.lua
index dacc5df6..73b465c0 100644
--- a/lua/mason/ui/instance.lua
+++ b/lua/mason/ui/instance.lua
@@ -21,7 +21,7 @@ local Semaphore = control.Semaphore
---@param state InstallerUiState
local function GlobalKeybinds(state)
return Ui.Node {
- Ui.Keybind("?", "TOGGLE_HELP", nil, true),
+ Ui.Keybind("g?", "TOGGLE_HELP", nil, true),
Ui.Keybind("q", "CLOSE_WINDOW", nil, true),
Ui.When(not state.view.language_filter, Ui.Keybind("<Esc>", "CLOSE_WINDOW", nil, true)),
Ui.When(state.view.language_filter, Ui.Keybind("<Esc>", "CLEAR_LANGUAGE_FILTER", nil, true)),