From 61d9f583a83bac906a1cf6ceafe80c1ccf0f1d35 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Fri, 17 Jan 2025 12:33:02 +0100 Subject: [PATCH] feat(emacs): add lsp-mode emacs keybindings --- src/keybind/builtin/emacs.json | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/keybind/builtin/emacs.json b/src/keybind/builtin/emacs.json index be5f851..4865b10 100644 --- a/src/keybind/builtin/emacs.json +++ b/src/keybind/builtin/emacs.json @@ -37,7 +37,25 @@ ["ctrl+x ctrl+c", "quit"], ["ctrl+x b", "open_recent"], ["alt+x", "open_command_palette"], - ["ctrl+space", "enter_mode", "select"] + ["ctrl+space", "enter_mode", "select"], + + ["ctrl+c l = =", "format"], + ["ctrl+c l = r", "format"], + ["ctrl+c l g g", "goto_definition"], + ["ctrl+c l g i", "goto_implementation"], + ["ctrl+c l g d", "goto_declaration"], + ["ctrl+c l g r", "references"], + ["ctrl+c l h h", "hover"], + ["ctrl+c l r r", "rename_symbol"], + + ["super+l = =", "format"], + ["super+l = r", "format"], + ["super+l g g", "goto_definition"], + ["super+l g i", "goto_implementation"], + ["super+l g d", "goto_declaration"], + ["super+l g r", "references"], + ["super+l h h", "hover"], + ["super+l r r", "rename_symbol"] ] }, "select": {