From 8f7398735feda906432f7c1b685e3dc3518630c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Sat, 30 May 2026 16:37:29 -0300 Subject: [PATCH] kak-lsp: fix multi-instance rust-analyzer --- user/kakoune/kak-lsp.toml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/user/kakoune/kak-lsp.toml b/user/kakoune/kak-lsp.toml index 9c195bd..ad14bef 100644 --- a/user/kakoune/kak-lsp.toml +++ b/user/kakoune/kak-lsp.toml @@ -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]