Skip to content

Commit

Permalink
Sublime mouse bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
amirrezaask committed Sep 2, 2024
1 parent f27de6c commit f6e020a
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 17 deletions.
23 changes: 19 additions & 4 deletions SublimeText/Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
[
{ "keys": ["command+shift+n"], "command": "advanced_new_file_new" },
{ "keys": ["command+."], "command": "goto_definition" },
{
{ "keys": ["command+,"], "command": "jump_back" },
{ // Goto Definition
"keys": ["command+."],
"command": "lsp_symbol_definition",
"args": {"side_by_side": false, "force_group": true, "fallback": false, "group": -1},
"args": {"side_by_side": false, "force_group": true, "fallback": true, "group": -1},
"context": [
{"key": "lsp.session_with_capability", "operand": "definitionProvider"},
{"key": "auto_complete_visible", "operand": false}
]
},
{ "keys": ["command+,"], "command": "jump_back" },
{ // Goto References
"keys": ["command+shift+."],
"command": "lsp_symbol_references",
"args": {"side_by_side": false, "force_group": true, "fallback": true, "group": -1, "include_declaration": false},
"context": [{"key": "lsp.session_with_capability", "operand": "referencesProvider"}]
},
{ // Goto Implementation
"keys": ["command+ctrl+."],
"command": "lsp_symbol_implementation",
"args": {"side_by_side": false, "force_group": true, "group": -1},
"context": [
{"key": "lsp.session_with_capability", "operand": "implementationProvider"},
{"key": "auto_complete_visible", "operand": false}
]
},
// }}}

// Sidebar
{ "keys": ["command+1"], "command": "toggle_side_bar" },
Expand Down
38 changes: 26 additions & 12 deletions SublimeText/Default (OSX).sublime-mousemap
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
[
{
"button": "button1", "modifiers": ["ctrl"],
"press_command": "goto_definition"
},
{
"button": "button1", "modifiers": ["ctrl"],
"press_command": "lsp_symbol_definition",
"press_args": {"side_by_side": false, "force_group": true, "fallback": false, "group": -1},
"context": [
{"key": "lsp.session_with_capability", "operand": "definitionProvider"},
{ // Goto Definition
"button": "button1",
"modifiers": ["command", "shift"],
"press_command": "lsp_symbol_definition",
"press_args": {"side_by_side": false, "force_group": true, "fallback": true, "group": -1},
"context": [
{"key": "lsp.session_with_capability", "operand": "definitionProvider"},
{"key": "auto_complete_visible", "operand": false}
]
},
]
},
{ // Goto References
"button": "button1",
"modifiers": ["command", "ctrl"],
"press_command": "lsp_symbol_references",
"press_args": {"side_by_side": false, "force_group": true, "fallback": true, "group": -1, "include_declaration": false},
"context": [{"key": "lsp.session_with_capability", "operand": "referencesProvider"}]
},
{ // Goto Implementation
"button": "button1",
"modifiers": ["command", "alt"],
"press_command": "lsp_symbol_implementation",
"press_args": {"side_by_side": false, "force_group": true, "group": -1},
"context": [
{"key": "lsp.session_with_capability", "operand": "implementationProvider"},
{"key": "auto_complete_visible", "operand": false}
]
},
]
3 changes: 2 additions & 1 deletion SublimeText/Preferences.sublime-settings
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"font_size": 19,
"font_size": 14,
"ignored_packages":
[
"Vintage",
Expand All @@ -17,6 +17,7 @@
"auto_match_enabled": false,
"show_definitions": false,
"close_windows_when_empty": false,
"show_rel_path": true,
"color_scheme": "auto",
"dark_color_scheme": "Night Owl.sublime-color-scheme",
"light_color_scheme": "Packages/User/InspiredGithub.tmTheme",
Expand Down

0 comments on commit f6e020a

Please sign in to comment.