mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 08:03:19 +00:00
Adds Biome as a language server (lint diagnostics and code actions) and as a formatter for CSS, GraphQL, JavaScript, TypeScript (and JSX), JSON and JSONC, with a Languages & Frameworks > Biome settings page (path, provider, run on save, enabled languages). Biome formats instead of Prettier and oxfmt below a biome.json / biome.jsonc or a Biome installation, unless the nearest configuration sets formatter.enabled to false, in which case Prettier keeps formatting. Resolved conflicts with the Tailwind CSS language server: both servers are listed in the language definitions, registry tests and docs. Co-authored-by: wildcatDownstairs <26499420+wildcatDownstairs@users.noreply.github.com>
38 lines
1.4 KiB
TOML
38 lines
1.4 KiB
TOML
id = "css"
|
||
name = "CSS"
|
||
formatter = { tool = "prettier", parser = "css", range = false }
|
||
extensions = ["css", "pcss", "postcss"]
|
||
block-comment = ["/*", "*/"]
|
||
indent = { tab-size = 2, insert-spaces = true }
|
||
ui-mode = "CSS"
|
||
tree-sitter = "css"
|
||
|
||
[[language-servers]]
|
||
name = "vscode-css-language-server"
|
||
command = "vscode-css-language-server"
|
||
args = ["--stdio"]
|
||
initialization-options = { provideFormatter = true, css = {}, scss = {}, less = {} }
|
||
install-hint = "npm i -g vscode-langservers-extracted"
|
||
|
||
# Biome: lint diagnostics, quick fixes and fix-all below a Biome configuration or installation,
|
||
# from the project's own biome. Formatting is Reformat Code's (Settings › Biome).
|
||
[[language-servers]]
|
||
name = "biome"
|
||
command = "biome"
|
||
args = ["lsp-proxy"]
|
||
root-markers = ["biome.json", "biome.jsonc", "node_modules/@biomejs/biome"]
|
||
require-root-marker = true
|
||
features = ["code-action", "diagnostics"]
|
||
install-hint = "npm i -D @biomejs/biome"
|
||
|
||
# Tailwind CSS: class completion, hover and diagnostics, only in a project that uses Tailwind
|
||
# (`tailwind.config.*` or `tailwindcss` in package.json). After the language's own servers,
|
||
# which answer hover first.
|
||
[[language-servers]]
|
||
name = "tailwindcss-language-server"
|
||
command = "tailwindcss-language-server"
|
||
args = ["--stdio"]
|
||
root-markers = ["tailwind.config.*", "package.json#dependencies.tailwindcss", "package.json#devDependencies.tailwindcss"]
|
||
require-root-marker = true
|
||
install-hint = "npm i -g @tailwindcss/language-server"
|