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] [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]