init
This commit is contained in:
parent
3728ac496d
commit
53395d3971
81 changed files with 723 additions and 1543 deletions
20
home/config/nvim/lua/plugins/lsp.lua
Normal file
20
home/config/nvim/lua/plugins/lsp.lua
Normal 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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue