aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/angularls/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/servers/angularls/init.lua')
-rw-r--r--lua/nvim-lsp-installer/servers/angularls/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/nvim-lsp-installer/servers/angularls/init.lua b/lua/nvim-lsp-installer/servers/angularls/init.lua
index 102ad32f..a7217783 100644
--- a/lua/nvim-lsp-installer/servers/angularls/init.lua
+++ b/lua/nvim-lsp-installer/servers/angularls/init.lua
@@ -7,8 +7,8 @@ return function(name, root_dir)
-- Angular requires a node_modules directory to probe for @angular/language-service and typescript
-- in order to use your projects configured versions.
-- This defaults to the vim cwd, but will get overwritten by the resolved root of the file.
- local function get_probe_dir(root_dir)
- local project_root = util.find_node_modules_ancestor(root_dir)
+ local function get_probe_dir(dir)
+ local project_root = util.find_node_modules_ancestor(dir)
return project_root and (project_root .. "/node_modules") or ""
end