kak-lsp: fix multi-instance rust-analyzer
This commit is contained in:
parent
06158f6b9a
commit
8f7398735f
1 changed files with 4 additions and 12 deletions
|
|
@ -121,21 +121,13 @@ stubs = [
|
||||||
[language_server.rust-analyzer]
|
[language_server.rust-analyzer]
|
||||||
filetypes = ["rust"]
|
filetypes = ["rust"]
|
||||||
roots = ["Cargo.toml"]
|
roots = ["Cargo.toml"]
|
||||||
command = "sh"
|
command = "rust-analyzer"
|
||||||
args = [
|
single_instance = false
|
||||||
"-c",
|
|
||||||
"""
|
|
||||||
if path=$(rustup which rust-analyzer 2>/dev/null); then
|
|
||||||
"$path"
|
|
||||||
else
|
|
||||||
rust-analyzer
|
|
||||||
fi
|
|
||||||
""",
|
|
||||||
]
|
|
||||||
[language_server.rust-analyzer.settings.rust-analyzer]
|
[language_server.rust-analyzer.settings.rust-analyzer]
|
||||||
# See https://rust-analyzer.github.io/manual.html#configuration
|
# See https://rust-analyzer.github.io/manual.html#configuration
|
||||||
# cargo.features = []
|
# cargo.features = []
|
||||||
checkOnSave.command = "clippy"
|
check.command = "clippy"
|
||||||
hoverActions.enable = false # kak-lsp doesn't support this at the moment
|
hoverActions.enable = false # kak-lsp doesn't support this at the moment
|
||||||
|
|
||||||
[language_server.godot]
|
[language_server.godot]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue