Skip to content

Commit

Permalink
Give some hints in the keybindings about the lsp_active view setting (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rwols committed Nov 30, 2019
1 parent 9a7234e commit eb7561e
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 39 deletions.
26 changes: 13 additions & 13 deletions Keymaps/Default (Linux).sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
// },

// Show Code Actions
{ "keys": ["ctrl+."], "command": "lsp_code_actions" },
{ "keys": ["ctrl+."], "command": "lsp_code_actions", "context": [{"key": "setting.lsp_active"}]},

// Show/Hide Diagnostics Panel
{ "keys": ["ctrl+alt+m"], "command": "lsp_show_diagnostics_panel" },
{ "keys": ["ctrl+alt+m"], "command": "lsp_show_diagnostics_panel", "context": [{"key": "setting.lsp_active"}]},

// Trigger Signature Help
{ "keys": ["ctrl+alt+space"], "command": "noop", "context": [{ "key": "lsp.signature_help", "operator": "equal", "operand": 0}] },
Expand All @@ -23,35 +23,35 @@
{ "keys": ["down"], "command": "noop", "context": [{ "key": "lsp.signature_help", "operator": "equal", "operand": 1 }] },

// Find Symbol References
{ "keys": ["shift+f12"], "command": "lsp_symbol_references" },
{ "keys": ["shift+f12"], "command": "lsp_symbol_references", "context": [{"key": "setting.lsp_active"}]},

// Go To Definition
// {"keys": ["UNBOUND"], "command": "lsp_symbol_definition"},
// {"keys": ["UNBOUND"], "command": "lsp_symbol_definition", "context": [{"key": "setting.lsp_active"}]},

// Go To Type Definition
// {"keys": ["UNBOUND"], "command": "lsp_symbol_type_definition"},
// {"keys": ["UNBOUND"], "command": "lsp_symbol_type_definition", "context": [{"key": "setting.lsp_active"}]},

// Go To Declaration
// {"keys": ["UNBOUND"], "command": "lsp_symbol_declaration"},
// {"keys": ["UNBOUND"], "command": "lsp_symbol_declaration", "context": [{"key": "setting.lsp_active"}]},

// Go To Implementation
// {"keys": ["UNBOUND"], "command": "lsp_symbol_implementation"},
// {"keys": ["UNBOUND"], "command": "lsp_symbol_implementation", "context": [{"key": "setting.lsp_active"}]},

// Rename Symbol
// { "keys": ["UNBOUND"], "command": "lsp_symbol_rename" },
// { "keys": ["UNBOUND"], "command": "lsp_symbol_rename", "context": [{"key": "setting.lsp_active"}]},

// Format Document
// {"keys": ["UNBOUND"], "command": "lsp_format_document"},
// {"keys": ["UNBOUND"], "command": "lsp_format_document", "context": [{"key": "setting.lsp_active"}]},

// Format Selection
// {"keys": ["UNBOUND"], "command": "lsp_format_document_range"},
// {"keys": ["UNBOUND"], "command": "lsp_format_document_range", "context": [{"key": "setting.lsp_active"}]},

// Document Symbols
// {"keys": ["UNBOUND"], "command": "lsp_document_symbols"},
// {"keys": ["UNBOUND"], "command": "lsp_document_symbols", "context": [{"key": "setting.lsp_active"}]},

// Workspace Symbols
// {"keys": ["UNBOUND"], "command": "lsp_workspace_symbols"},
// {"keys": ["UNBOUND"], "command": "lsp_workspace_symbols", "context": [{"key": "setting.lsp_active"}]},

// Symbol Hover
// {"keys": ["UNBOUND"], "command": "lsp_hover"},
// {"keys": ["UNBOUND"], "command": "lsp_hover", "context": [{"key": "setting.lsp_active"}]},
]
26 changes: 13 additions & 13 deletions Keymaps/Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
// },

// Show Code Actions
{ "keys": ["super+."], "command": "lsp_code_actions" },
{ "keys": ["super+."], "command": "lsp_code_actions", "context": [{"key": "setting.lsp_active"}]},

// Show/Hide Diagnostics Panel
{ "keys": ["super+alt+m"], "command": "lsp_show_diagnostics_panel" },
{ "keys": ["super+alt+m"], "command": "lsp_show_diagnostics_panel", "context": [{"key": "setting.lsp_active"}]},

// Trigger Signature Help
{ "keys": ["super+alt+space"], "command": "noop", "context": [{ "key": "lsp.signature_help", "operator": "equal", "operand": 0}] },
Expand All @@ -23,35 +23,35 @@
{ "keys": ["down"], "command": "noop", "context": [{ "key": "lsp.signature_help", "operator": "equal", "operand": 1 }] },

// Find Symbol References
{ "keys": ["shift+f12"], "command": "lsp_symbol_references" },
{ "keys": ["shift+f12"], "command": "lsp_symbol_references", "context": [{"key": "setting.lsp_active"}]},

// Go To Definition
// {"keys": ["UNBOUND"], "command": "lsp_symbol_definition"},
// {"keys": ["UNBOUND"], "command": "lsp_symbol_definition", "context": [{"key": "setting.lsp_active"}]},

// Go To Type Definition
// {"keys": ["UNBOUND"], "command": "lsp_symbol_type_definition"},
// {"keys": ["UNBOUND"], "command": "lsp_symbol_type_definition", "context": [{"key": "setting.lsp_active"}]},

// Go To Declaration
// {"keys": ["UNBOUND"], "command": "lsp_symbol_declaration"},
// {"keys": ["UNBOUND"], "command": "lsp_symbol_declaration", "context": [{"key": "setting.lsp_active"}]},

// Go To Implementation
// {"keys": ["UNBOUND"], "command": "lsp_symbol_implementation"},
// {"keys": ["UNBOUND"], "command": "lsp_symbol_implementation", "context": [{"key": "setting.lsp_active"}]},

// Rename Symbol
// { "keys": ["UNBOUND"], "command": "lsp_symbol_rename" },
// { "keys": ["UNBOUND"], "command": "lsp_symbol_rename", "context": [{"key": "setting.lsp_active"}]},

// Format Document
// {"keys": ["UNBOUND"], "command": "lsp_format_document"},
// {"keys": ["UNBOUND"], "command": "lsp_format_document", "context": [{"key": "setting.lsp_active"}]},

// Format Selection
// {"keys": ["UNBOUND"], "command": "lsp_format_document_range"},
// {"keys": ["UNBOUND"], "command": "lsp_format_document_range", "context": [{"key": "setting.lsp_active"}]},

// Document Symbols
// {"keys": ["UNBOUND"], "command": "lsp_document_symbols"},
// {"keys": ["UNBOUND"], "command": "lsp_document_symbols", "context": [{"key": "setting.lsp_active"}]},

// Workspace Symbols
// {"keys": ["UNBOUND"], "command": "lsp_workspace_symbols"},
// {"keys": ["UNBOUND"], "command": "lsp_workspace_symbols", "context": [{"key": "setting.lsp_active"}]},

// Symbol Hover
// {"keys": ["UNBOUND"], "command": "lsp_hover"},
// {"keys": ["UNBOUND"], "command": "lsp_hover", "context": [{"key": "setting.lsp_active"}]},
]
26 changes: 13 additions & 13 deletions Keymaps/Default (Windows).sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
// },

// Show Code Actions
{ "keys": ["ctrl+."], "command": "lsp_code_actions" },
{ "keys": ["ctrl+."], "command": "lsp_code_actions", "context": [{"key": "setting.lsp_active"}]},

// Show/Hide Diagnostics Panel
{ "keys": ["ctrl+alt+m"], "command": "lsp_show_diagnostics_panel" },
{ "keys": ["ctrl+alt+m"], "command": "lsp_show_diagnostics_panel", "context": [{"key": "setting.lsp_active"}]},

// Trigger Signature Help
{ "keys": ["ctrl+alt+space"], "command": "noop", "context": [{ "key": "lsp.signature_help", "operator": "equal", "operand": 0}] },
Expand All @@ -23,35 +23,35 @@
{ "keys": ["down"], "command": "noop", "context": [{ "key": "lsp.signature_help", "operator": "equal", "operand": 1 }] },

// Find Symbol References
{ "keys": ["shift+f12"], "command": "lsp_symbol_references" },
{ "keys": ["shift+f12"], "command": "lsp_symbol_references", "context": [{"key": "setting.lsp_active"}]},

// Go To Definition
// {"keys": ["UNBOUND"], "command": "lsp_symbol_definition"},
// {"keys": ["UNBOUND"], "command": "lsp_symbol_definition", "context": [{"key": "setting.lsp_active"}]},

// Go To Type Definition
// {"keys": ["UNBOUND"], "command": "lsp_symbol_type_definition"},
// {"keys": ["UNBOUND"], "command": "lsp_symbol_type_definition", "context": [{"key": "setting.lsp_active"}]},

// Go To Declaration
// {"keys": ["UNBOUND"], "command": "lsp_symbol_declaration"},
// {"keys": ["UNBOUND"], "command": "lsp_symbol_declaration", "context": [{"key": "setting.lsp_active"}]},

// Go To Implementation
// {"keys": ["UNBOUND"], "command": "lsp_symbol_implementation"},
// {"keys": ["UNBOUND"], "command": "lsp_symbol_implementation", "context": [{"key": "setting.lsp_active"}]},

// Rename Symbol
// { "keys": ["UNBOUND"], "command": "lsp_symbol_rename" },
// { "keys": ["UNBOUND"], "command": "lsp_symbol_rename", "context": [{"key": "setting.lsp_active"}]},

// Format Document
// {"keys": ["UNBOUND"], "command": "lsp_format_document"},
// {"keys": ["UNBOUND"], "command": "lsp_format_document", "context": [{"key": "setting.lsp_active"}]},

// Format Selection
// {"keys": ["UNBOUND"], "command": "lsp_format_document_range"},
// {"keys": ["UNBOUND"], "command": "lsp_format_document_range", "context": [{"key": "setting.lsp_active"}]},

// Document Symbols
// {"keys": ["UNBOUND"], "command": "lsp_document_symbols"},
// {"keys": ["UNBOUND"], "command": "lsp_document_symbols", "context": [{"key": "setting.lsp_active"}]},

// Workspace Symbols
// {"keys": ["UNBOUND"], "command": "lsp_workspace_symbols"},
// {"keys": ["UNBOUND"], "command": "lsp_workspace_symbols", "context": [{"key": "setting.lsp_active"}]},

// Symbol Hover
// {"keys": ["UNBOUND"], "command": "lsp_hover"},
// {"keys": ["UNBOUND"], "command": "lsp_hover", "context": [{"key": "setting.lsp_active"}]},
]

0 comments on commit eb7561e

Please sign in to comment.