onivim / libvim

libvim: The core Vim editing engine as a minimal C library
https://v2.onivim.io
MIT License
691 stars 34 forks source link

feat(api): Externalize map commands #236

Closed bryphe closed 3 years ago

bryphe commented 3 years ago

This externalizes map commands (map, nmap, inoremap) - such that the consumer can interleave them into whatever input strategy they are using. For Onivim 2, this means that we can coalesce Vim mappings with the keybindings.json mappings, and have a common framework for processing both types of mappings / bindings.