66 lines
1.5 KiB
Plaintext
66 lines
1.5 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
|
|
}
|
|
]
|
|
},
|
|
// Code action
|
|
{
|
|
"command": "lsp_code_actions",
|
|
"keys": [
|
|
"super+."
|
|
],
|
|
"context": [
|
|
{
|
|
"key": "lsp.session_with_capability",
|
|
"operator": "equal",
|
|
"operand": "codeActionProvider"
|
|
},
|
|
]
|
|
},
|
|
{
|
|
"command": "lsp_hover",
|
|
"keys": [
|
|
"alt+.",
|
|
],
|
|
"context": [
|
|
{
|
|
"key": "lsp.session_with_capability",
|
|
"operator": "equal",
|
|
"operand": "codeActionProvider"
|
|
},
|
|
]
|
|
}
|
|
]
|