st3-config/Packages/User/Default (Linux).sublime-keymap

117 lines
2.7 KiB
Plaintext

[
// Format Document
{
"command": "lsp_format_document",
"keys": [
"primary+alt+r"
],
"context": [
{
"key": "lsp.session_with_capability",
"operator": "equal",
"operand": "documentFormattingProvider | documentRangeFormattingProvider"
}
]
},
// Go To Definition
{
"command": "lsp_symbol_definition",
"args": {
"side_by_side": false
},
"keys": [
"primary+alt+g"
],
"context": [
{
"key": "lsp.session_with_capability",
"operator": "equal",
"operand": "definitionProvider"
},
{
"key": "auto_complete_visible",
"operator": "equal",
"operand": false
}
]
},
// Go To TYPE Definition
{
"command": "lsp_symbol_type_definition",
"args": {
"side_by_side": false
},
"keys": [
"primary+alt+d"
],
"context": [
{
"key": "lsp.session_with_capability",
"operator": "equal",
"operand": "definitionProvider"
},
{
"key": "auto_complete_visible",
"operator": "equal",
"operand": false
}
]
},
// LSP hover by keycombination
{
"command": "lsp_hover",
"keys": [
"super+.",
],
"context": [
{
"key": "lsp.session_with_capability",
"operator": "equal",
"operand": "codeActionProvider"
},
]
},
// Code action
{
"command": "lsp_code_actions",
"keys": [
"super+/"
],
"context": [
{
"key": "lsp.session_with_capability",
"operator": "equal",
"operand": "codeActionProvider"
},
]
},
// Rename symbol
{
"command": "lsp_symbol_rename",
"keys": [
"primary+alt+s"
],
"context": [
{
"key": "lsp.session_with_capability",
"operator": "equal",
"operand": "codeActionProvider"
},
]
},
// Rename symbol
{
"command": "lsp_symbol_references",
"keys": [
"primary+alt+f"
],
"context": [
{
"key": "lsp.session_with_capability",
"operator": "equal",
"operand": "codeActionProvider"
},
]
},
]