mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix: make angularls work for nx workspaces as well
This commit is contained in:
parent
401ef48fcd
commit
7053d399fb
1 changed files with 7 additions and 1 deletions
|
|
@ -31,7 +31,13 @@ return {
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
opts = {
|
opts = {
|
||||||
servers = {
|
servers = {
|
||||||
angularls = {},
|
angularls = {
|
||||||
|
-- Make sure it works for Nx workspaces as well
|
||||||
|
root_dir = function(fname)
|
||||||
|
return require("lspconfig.util").root_pattern("nx.json", "angular.json")(fname)
|
||||||
|
or vim.loop.cwd()
|
||||||
|
end,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
setup = {
|
setup = {
|
||||||
angularls = function()
|
angularls = function()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue