This commit is contained in:
DACHXY 2024-12-12 10:57:27 +08:00
parent 3728ac496d
commit 53395d3971
81 changed files with 723 additions and 1543 deletions

View file

@ -0,0 +1,20 @@
local util = require("lspconfig.util")
return {
{
"neovim/nvim-lspconfig",
opts = {
servers = {
biome = {
root_dir = function(fname)
return util.root_pattern("biome.json", "biome.jsonc")(fname)
or util.find_package_json_ancestor(fname)
or vim.fs.find("node_modules", { path = fname, upward = true })[1]
or util.find_node_modules_ancestor(fname)
or util.find_git_ancestor(fname)
end,
},
},
},
},
}