vague2k / huez.nvim

All things color related. All Lua.
MIT License
102 stars 3 forks source link

fix(picker): `<esc>` on insert mode does not go into normal mode #36

Closed vague2k closed 1 month ago

vague2k commented 1 month ago

Every picker had a mapping as follows

  -- example
  attach_map("i", "<esc>", actions.some_action)

Which caused the picker to close on insert mode, instead of going to normal mode first, which was not the intended, exact behavior.

This PR removes this mapping from every, picker. Causing the pickers to behave like telescope usually would, going to normal mode first from insert mode, and pressing <esc> again would close the picker.