feat: move all keybind mode related options to keybind config

This commit is contained in:
CJ van den Berg 2024-12-03 23:04:10 +01:00
parent cf1befe3fa
commit 3b8982ac26
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
12 changed files with 85 additions and 140 deletions

View file

@ -6,6 +6,9 @@
"normal": {
"syntax": "vim",
"on_match_failure": "ignore",
"name": "NORMAL",
"line_numbers": "relative",
"cursor": "block",
"press": [
["b", "move_word_left"],
["w", "move_word_right_vim"],
@ -63,8 +66,21 @@
["<CR>", "smart_insert_line"]
]
},
"visual": {
"syntax": "vim",
"on_match_failure": "ignore",
"name": "VISUAL",
"line_numbers": "relative",
"cursor": "underline",
"press": [
["<Esc>", "enter_mode", "normal"],
]
},
"insert": {
"syntax": "vim",
"name": "INSERT",
"line_numbers": "absolute",
"cursor": "beam",
"press": [
["jk", "enter_mode", "normal"],
["<Esc>", "enter_mode", "normal"],