Skip to content

Commit

Permalink
docs: improve example of keymap configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Jan 30, 2024
1 parent 5497c11 commit 602c7da
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/configuration/keymap.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@ on = [ "<C-a>" ]
exec = 'my-fev-command1'
desc = "Just for test!"

[[manager.append_keymap]]
[[manager.prepend_keymap]]
on = [ "<C-b>" ]
exec = 'my-fev-command2'
desc = "Just for test!"

[[manager.append_keymap]]
on = [ "<C-c>" ]
exec = 'my-fev-command3'
```

But keep in mind that you can only choose one of them, and it cannot be a combination of the two, as TOML language does NOT allow this:
But keep in mind that you can only choose one of them, and it cannot be a combination of the two, as TOML language does not allow this:

```toml
[manager]
Expand Down

0 comments on commit 602c7da

Please sign in to comment.