kak-lsp: fix multi-instance rust-analyzer

This commit is contained in:
Leonardo Eugênio 2026-05-30 16:37:29 -03:00
parent 06158f6b9a
commit 8f7398735f

View file

@ -121,21 +121,13 @@ stubs = [
[language_server.rust-analyzer]
filetypes = ["rust"]
roots = ["Cargo.toml"]
command = "sh"
args = [
"-c",
"""
if path=$(rustup which rust-analyzer 2>/dev/null); then
"$path"
else
rust-analyzer
fi
""",
]
command = "rust-analyzer"
single_instance = false
[language_server.rust-analyzer.settings.rust-analyzer]
# See https://rust-analyzer.github.io/manual.html#configuration
# cargo.features = []
checkOnSave.command = "clippy"
check.command = "clippy"
hoverActions.enable = false # kak-lsp doesn't support this at the moment
[language_server.godot]