diff options
Diffstat (limited to 'lsp/angularls.lua')
| -rw-r--r-- | lsp/angularls.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lsp/angularls.lua b/lsp/angularls.lua index a5a94c6e..474905d7 100644 --- a/lsp/angularls.lua +++ b/lsp/angularls.lua @@ -66,7 +66,7 @@ end ---@type vim.lsp.Config return { cmd = function(dispatchers, config) - local root_dir = config.root or fn.getcwd() + local root_dir = (config and config.root) or fn.getcwd() local node_paths = collect_node_modules(root_dir) local ts_probe = table.concat(node_paths, ',') |
