Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give some hints in the keybindings about the lsp_active view setting #799

Merged
merged 3 commits into from
Nov 30, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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"}]},
]