Situational LSP on same file extension #8505
Labels
A-helix-term
Area: Helix term improvements
C-enhancement
Category: Improvements
E-easy
Call for participation: Experience needed to fix: Easy / not much
E-good-first-issue
Call for participation: Issues suitable for new contributors
Intro
Some languages have multiple possible language servers, in my case the (in)famous Javascript/Typescript:
typescript-language-server
deno lsp
eslint
,tailwindcss
or any other situational language support, all for the same file types (jsx?
/tsx?
)Formal issue
Language support may depend on configured tooling in the workspace rather than just file extension.
roots
isn't requiring the existence of the files.Possible enhancements
language.toml
flag key to actually require one of theroots
files to be found to in order to enable the LSPEg.
require-root = true
language.toml
configuration key of possible marker files in found root that enables the LSP.Eg.
required-roots = ["deno.json", "deno.jsonc", "deno.lock"]
Option 1 seems relevant and sufficient to cover multiple LSP per file type while keeping things simple.
Current workaround
Dropping an
.helix/languages.toml
situationally in workspaces.The text was updated successfully, but these errors were encountered: