From 13299c44f1b3d41bb51c85fee35e45f999b13ba7 Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 22 Aug 2022 00:10:54 +0200 Subject: 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. --- lua/mason/ui/components/header.lua | 4 ++-- lua/mason/ui/instance.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lua') 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("", "CLOSE_WINDOW", nil, true)), Ui.When(state.view.language_filter, Ui.Keybind("", "CLEAR_LANGUAGE_FILTER", nil, true)), -- cgit v1.2.3-70-g09d2