refactor: split keybinds into one file per namespace

This commit is contained in:
CJ van den Berg 2024-11-18 22:59:55 +01:00
parent 45adc6c7ec
commit 729cc696c2
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
6 changed files with 460 additions and 449 deletions

View file

@ -0,0 +1,39 @@
{
"normal": {
"syntax": "vim",
"on_match_failure": "ignore",
"press": [
["j", "move_down"],
["k", "move_up"],
["l", "move_right_vim"],
["h", "move_left"],
["<Space>", "move_right_vim"],
["i", "enter_mode", "insert"],
["v", "enter_mode", "visual"],
["/", "find"],
["n", "goto_next_match"],
["0", "move_begin"],
["<S-4>", "move_end"],
[";", "open_command_palette"],
["<S-;>", "open_command_palette"],
["p", "paste"],
["gd", "goto_definition"],
["gi", "goto_implementation"],
["gy", "goto_type_definition"],
["gg", "move_buffer_begin"],
["g<S-d>", "goto_declaration"],
["<S-g>", "move_buffer_end"],
["d<S-4>", "delete_to_end"],
["d4", "delete_to_end"],
["<C-u>", "cursor_half_page_up"],
["<C-d>", "cursor_half_page_down"]
]
},
"insert": {
"syntax": "vim",
"press": [
["jk", "enter_mode", "normal"],
["<Esc>", "enter_mode", "normal"]
]
}
}