mirror of
https://github.com/neovim/nvim-lspconfig.git
synced 2026-05-07 17:46:10 +02:00
Problem: 78596b61 removed javascript.jsx and typescript.tsx from the lsp/ configs, but the same invalid filetypes remain in the legacy lua/lspconfig/configs/ files. These still surface in checkhealth warnings since the legacy configs get merged at runtime. Solution: remove javascript.jsx and typescript.tsx from all legacy config filetypes lists. The correct filetypes (javascriptreact, typescriptreact) are already present in each list.
45 lines
1.1 KiB
Lua
45 lines
1.1 KiB
Lua
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
-- This config is DEPRECATED.
|
|
-- Use the configs in `lsp/` instead (requires Nvim 0.11).
|
|
--
|
|
-- ALL configs in `lua/lspconfig/configs/` will be DELETED.
|
|
-- They exist only to support Nvim 0.10 or older.
|
|
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
local util = require 'lspconfig.util'
|
|
|
|
return {
|
|
default_config = {
|
|
cmd = { 'biome', 'lsp-proxy' },
|
|
filetypes = {
|
|
'astro',
|
|
'css',
|
|
'graphql',
|
|
'javascript',
|
|
'javascriptreact',
|
|
'json',
|
|
'jsonc',
|
|
'svelte',
|
|
'typescript',
|
|
'typescriptreact',
|
|
'vue',
|
|
},
|
|
root_dir = function(fname)
|
|
local root_files = { 'biome.json', 'biome.jsonc' }
|
|
root_files = util.insert_package_json(root_files, 'biome', fname)
|
|
return vim.fs.dirname(vim.fs.find(root_files, { path = fname, upward = true })[1])
|
|
end,
|
|
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
|
|
```
|
|
]],
|
|
},
|
|
}
|