nix-conf/home/config/nvim/lua/plugins/lsp.lua
2024-12-19 19:14:59 +08:00

20 lines
557 B
Lua

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,
-- },
},
},
},
}