Skip to content

Add g:lexima_close_pum_with_escape option#160

Open
mmrwoods wants to merge 1 commit into
cohama:masterfrom
mmrwoods:master
Open

Add g:lexima_close_pum_with_escape option#160
mmrwoods wants to merge 1 commit into
cohama:masterfrom
mmrwoods:master

Conversation

@mmrwoods
Copy link
Copy Markdown

@mmrwoods mmrwoods commented May 5, 2026

Similar to the option to allow <CR> to accept completions when the popup menu is open, this allows <Esc> to be used to close it. This seems worth adding as an option as Lexima adds both <CR> and <Esc> mappings by default, but currently only allows easy configuration for using <CR> with the popup menu. Adding a custom <Esc> mapping that is compatible with Lexima is a little tricky, config is so much simpler.

Note: I have not allowed for Vim <= 703 in this change as it's not so outdated it doesn't seem necessary

Similar to the option to allow `<CR>` to accept completions when the
popup menu is open, this allows `<Esc>` to be used to close it. This
seems worth adding as an option as Lexima adds both `<CR>` and `<Esc>`
mappings by default, but currently only allows easy configuration for
using `<CR>` with the popup menu. Adding a custom `<Esc>` mapping that
is compatible with Lexima is a little tricky, config is so much simpler.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant