stevearc / dressing.nvim

Neovim plugin to improve the default vim.ui interfaces
MIT License
1.73k stars 32 forks source link

Add normal mode for input. #3

Closed jandamm closed 2 years ago

jandamm commented 2 years ago

I've seen #1. But I see value in having ESC exiting insert mode. Pressing ESC again would then close the prompt.

I guess it wouldn't be too alienating for many users since this is his telescope works as well. Ideally this would be an option which could be set in get_config for input.

On another note, is there a filetype assigned to the input buffer which can be used to apply custom mappings? This might not "fix" but help with #2.

stevearc commented 2 years ago

I like both of these suggestions! Will add them shortly.

stevearc commented 2 years ago

Added an option to disable the ' in insert closes' mapping and set the filetypes of DressingInput and DressingSelect on the built-in modals.

jandamm commented 2 years ago

Awesome, thank you 🙏