Merge pull request #149 from travisstaloch/lsp-rename

implement lsp rename
This commit is contained in:
CJ van den Berg 2025-01-18 23:33:25 +01:00 committed by GitHub
commit 9f29853cd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 328 additions and 4 deletions

View file

@ -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": {

View file

@ -127,7 +127,8 @@
["shift+enter", "smart_insert_line_before"],
["shift+backspace", "delete_backward"],
["shift+tab", "unindent"],
["f2", "toggle_input_mode"],
["f2", "rename_symbol"],
["f4", "toggle_input_mode"],
["ctrl+f2", "insert_command_name"],
["f3", "goto_next_match"],
["f15", "goto_prev_match"],
@ -229,7 +230,7 @@
["alt+i", "toggle_inputview"],
["alt+x", "open_command_palette"],
["f1", "open_help"],
["f2", "toggle_input_mode"],
["f4", "toggle_input_mode"],
["ctrl+f2", "insert_command_name"],
["f6", "open_config"],
["f9", "theme_prev"],

View file

@ -44,6 +44,7 @@
["gi", "goto_implementation"],
["gy", "goto_type_definition"],
["gg", "move_buffer_begin"],
["grn", "rename_symbol"],
["g<S-d>", "goto_declaration"],
["<S-g>", "move_buffer_end"],