diff options
| author | William Boman <william@redwill.se> | 2021-10-30 11:05:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-30 11:05:50 +0200 |
| commit | 8e6615916de6f7d2491e47f8a97870eef0ad36d3 (patch) | |
| tree | 762def1fb61a0fc8a3aaaaa072da3e2c1c535817 /lua/nvim-lsp-installer/servers/angularls/init.lua | |
| parent | doc: add some docs (diff) | |
| download | mason-8e6615916de6f7d2491e47f8a97870eef0ad36d3.tar mason-8e6615916de6f7d2491e47f8a97870eef0ad36d3.tar.gz mason-8e6615916de6f7d2491e47f8a97870eef0ad36d3.tar.bz2 mason-8e6615916de6f7d2491e47f8a97870eef0ad36d3.tar.lz mason-8e6615916de6f7d2491e47f8a97870eef0ad36d3.tar.xz mason-8e6615916de6f7d2491e47f8a97870eef0ad36d3.tar.zst mason-8e6615916de6f7d2491e47f8a97870eef0ad36d3.zip | |
run installations in tmpdir (#199)
Resolves #154.
Diffstat (limited to 'lua/nvim-lsp-installer/servers/angularls/init.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/angularls/init.lua | 4 |
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 |
