fix: also map <C-/> for which-key (#2051)

Some terminals send Ctrl + / as <C-/>, not <C-_>. Map both to the
which_key action to cover these cases.
This commit is contained in:
Gregory Anders
2022-07-07 14:19:35 -06:00
committed by GitHub
parent a36500c7ee
commit 7df6662394

View File

@@ -33,6 +33,7 @@ mappings.default_mappings = config.values.default_mappings
["<C-q>"] = actions.send_to_qflist + actions.open_qflist, ["<C-q>"] = actions.send_to_qflist + actions.open_qflist,
["<M-q>"] = actions.send_selected_to_qflist + actions.open_qflist, ["<M-q>"] = actions.send_selected_to_qflist + actions.open_qflist,
["<C-l>"] = actions.complete_tag, ["<C-l>"] = actions.complete_tag,
["<C-/>"] = actions.which_key,
["<C-_>"] = actions.which_key, -- keys from pressing <C-/> ["<C-_>"] = actions.which_key, -- keys from pressing <C-/>
["<C-w>"] = { "<c-s-w>", type = "command" }, ["<C-w>"] = { "<c-s-w>", type = "command" },
}, },