Iron-E / nvim-libmodal

Create new "modes" for Neovim!
Other
118 stars 7 forks source link

feat: mapping fallback #40

Closed Iron-E closed 4 months ago

Iron-E commented 4 months ago

This PR implements the ability to set a fallback for keymaps in a Mode. Here is an example:

libmodal.mode
    .new('FOO', {--[[your keymaps here]]})
    :with_fallback(function (_, keys)
        vim.notify(vim.inspect(keys))
    end)
    :enter()

Closes #39