You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[idea] Statusline indicator for which LSP client sourced the active diagnostic/completion #214
No way to see, at a glance, which attached LSP client is "in control" for ambiguous multi-LSP situations beyond the bracketed client-name list already in the statusline.
Where
lua/config/statusline.lua:148-166 (current_lsp_clients()) already lists all attached client names for the buffer, e.g. [pyright, pyrefly], but gives no way to tell which one produced a given diagnostic/completion/definition result without opening the float.
lua/config/options.lua:50-51 carries the author's own TODO about repeated gd entries across LSPs (tracked separately in [idea] Dedup or label duplicate gd/go-to-definition entries across multiple LSPs #212), and options.lua:54-58 already tags diagnostics with source = "if_many" specifically because of this ambiguity — i.e. the underlying multi-LSP-attribution problem is already acknowledged in three places in this codebase (diagnostics config, the gd TODO, and implicitly the statusline client list).
lua/config/plugin_config.lua:133-152 (LspToggle command) lets you stop/restart a named client per-buffer, but the statusline gives no indication that a client was manually stopped vs. never attached.
Why it matters
With pyright + pyrefly both enabled for Python (plugin_config.lua:93-105), and potentially other duplicate-capability LSPs in the future, the statusline client list is the one place a user could disambiguate without extra keystrokes — right now it's purely informational with no state for "stopped via LspToggle" vs "active."
Recommended action
Extend current_lsp_clients() in statusline.lua to visually distinguish stopped/disabled clients (e.g. dim or strike-through highlight) from active ones, using the same vim.lsp.get_clients({ bufnr = 0 }) call already in place — no new dependency, mirrors the existing current_lsp_progress() pattern in the same file.
Activity
stanfish06 commentedon Jul 26, 2026
Cosmetic statusline detail with narrow value; the actionable multi-LSP problem (duplicate results from pyright + pyrefly) is tracked in #212.