feat: add custom keymap section

This commit is contained in:
Arne Van Maele 2024-06-15 10:43:37 +02:00
parent 609df6b49b
commit ae61e22731

View file

@ -94,6 +94,13 @@ Action can be run on selected candidates provide functionality
| Next Checkpoint| \<C-M-n\> |Move to the next candidate and keep Ivy open and focussed |
| Previous Checkpoint| \<C-M-n\>|Move to the previous candidate and keep Ivy open and focussed |
Add your own keymaps for an action by adding a `ftplugin/ivy.lua` file in your config.
Just add a simple keymap like this:
```lua
vim.api.nvim_set_keymap( "n", "<esc>", "<cmd>lua vim.ivy.destroy()<CR>", { noremap = true, silent = true, nowait = true })
```
## API