2021-11-11 18:20:18 +01:00
|
|
|
[
|
|
|
|
// 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
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-01-10 13:13:48 +01:00
|
|
|
// LSP hover by keycombination
|
2021-12-20 18:00:46 +01:00
|
|
|
{
|
2022-01-10 13:13:48 +01:00
|
|
|
"command": "lsp_hover",
|
2021-12-20 18:00:46 +01:00
|
|
|
"keys": [
|
2022-01-10 13:13:48 +01:00
|
|
|
"super+.",
|
2021-12-20 18:00:46 +01:00
|
|
|
],
|
|
|
|
"context": [
|
|
|
|
{
|
|
|
|
"key": "lsp.session_with_capability",
|
|
|
|
"operator": "equal",
|
|
|
|
"operand": "codeActionProvider"
|
|
|
|
},
|
|
|
|
]
|
2021-12-20 18:25:19 +01:00
|
|
|
},
|
2022-01-10 13:13:48 +01:00
|
|
|
// Code action
|
2021-12-20 18:25:19 +01:00
|
|
|
{
|
2022-01-10 13:13:48 +01:00
|
|
|
"command": "lsp_code_actions",
|
2021-12-20 18:25:19 +01:00
|
|
|
"keys": [
|
2022-01-10 13:13:48 +01:00
|
|
|
"super+/"
|
2021-12-20 18:25:19 +01:00
|
|
|
],
|
|
|
|
"context": [
|
|
|
|
{
|
|
|
|
"key": "lsp.session_with_capability",
|
|
|
|
"operator": "equal",
|
|
|
|
"operand": "codeActionProvider"
|
|
|
|
},
|
|
|
|
]
|
2022-01-10 13:13:48 +01:00
|
|
|
},
|
2022-01-26 15:39:22 +01:00
|
|
|
// Rename symbol
|
|
|
|
{
|
|
|
|
"command": "lsp_symbol_rename",
|
|
|
|
"keys": [
|
|
|
|
"primary+alt+s"
|
|
|
|
],
|
|
|
|
"context": [
|
|
|
|
{
|
|
|
|
"key": "lsp.session_with_capability",
|
|
|
|
"operator": "equal",
|
|
|
|
"operand": "codeActionProvider"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
2021-11-11 18:20:18 +01:00
|
|
|
]
|