fix: make angularls work for nx workspaces as well

This commit is contained in:
Gergely Padányi-Gulyás 2025-02-15 11:01:08 +01:00
parent 401ef48fcd
commit 7053d399fb

View file

@ -31,7 +31,13 @@ return {
"neovim/nvim-lspconfig",
opts = {
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 = {
angularls = function()