1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-09 14:50:06 +08:00
SpaceVim/bundle/nvim-lspconfig-latest/lua/lspconfig/server_configurations/biome.lua
2024-05-21 12:31:14 +08:00

36 lines
704 B
Lua

local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'biome', 'lsp-proxy' },
filetypes = {
'javascript',
'javascriptreact',
'json',
'jsonc',
'typescript',
'typescript.tsx',
'typescriptreact',
'astro',
'svelte',
'vue',
},
root_dir = util.root_pattern('biome.json', 'biome.jsonc'),
single_file_support = false,
},
docs = {
description = [[
https://biomejs.dev
Toolchain of the web. [Successor of Rome](https://biomejs.dev/blog/annoucing-biome).
```sh
npm install [-g] @biomejs/biome
```
]],
default_config = {
root_dir = [[root_pattern('biome.json', 'biome.jsonc')]],
},
},
}