From 5ab58bb72f4425bb716d805d406b5d8eb61f6124 Mon Sep 17 00:00:00 2001 From: "Lau, Jason JH" <52206004+LauGaHo@users.noreply.github.com> Date: Tue, 31 Dec 2024 22:15:51 +0800 Subject: [PATCH] feat: update angularls/init.lua make the node_modules which in the project have the highest priority, its priority should be higher than mason --- lua/mason-lspconfig/server_configurations/angularls/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/mason-lspconfig/server_configurations/angularls/init.lua b/lua/mason-lspconfig/server_configurations/angularls/init.lua index 6316dd032..7eb52db02 100644 --- a/lua/mason-lspconfig/server_configurations/angularls/init.lua +++ b/lua/mason-lspconfig/server_configurations/angularls/init.lua @@ -13,12 +13,12 @@ return function(install_dir) "ngserver", "--stdio", "--tsProbeLocations", - table.concat(append_node_modules { install_dir, workspace_dir }, ","), + table.concat(append_node_modules { workspace_dir, install_dir }, ","), "--ngProbeLocations", table.concat( append_node_modules { - path.concat { install_dir, "node_modules", "@angular", "language-server" }, workspace_dir, + path.concat { install_dir, "node_modules", "@angular", "language-server" }, }, "," ),