williamboman / mason.nvim

Portable package manager for Neovim that runs everywhere Neovim runs. Easily install and manage LSP servers, DAP servers, linters, and formatters.
Apache License 2.0
7.93k stars 281 forks source link

Provide custom keybind for closing window #1595

Open radvil opened 10 months ago

radvil commented 10 months ago

I've searched open issues for similar requests

Is your feature request related to a problem? Please describe.

I want to unbind <Esc> whenever mason window opened, because I used it to clear the search highlight (mostly after searching the package name). It seems like it is not possible to do so. q is okay thou, but not <esc> please ??

Describe the solution you'd like

Let's just use q as the default keymap and provide an option to replace it.

Describe potential alternatives you've considered

No response

Additional context

No response

smartinellimarco commented 4 months ago

I'd also override pre-existing mappings. For example, I use for closing windows, and mason does not redefine it to the 'cancel' action.