aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/server_configurations/angularls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/server_configurations/angularls.lua')
-rw-r--r--lua/lspconfig/server_configurations/angularls.lua24
1 files changed, 8 insertions, 16 deletions
diff --git a/lua/lspconfig/server_configurations/angularls.lua b/lua/lspconfig/server_configurations/angularls.lua
index 32507350..a720d440 100644
--- a/lua/lspconfig/server_configurations/angularls.lua
+++ b/lua/lspconfig/server_configurations/angularls.lua
@@ -11,24 +11,16 @@ end
local default_probe_dir = get_probe_dir(vim.fn.getcwd())
-local bin_name = 'ngserver'
-local args = {
- '--stdio',
- '--tsProbeLocations',
- default_probe_dir,
- '--ngProbeLocations',
- default_probe_dir,
-}
-
-local cmd = { bin_name, unpack(args) }
-
-if vim.fn.has 'win32' == 1 then
- cmd = { 'cmd.exe', '/C', bin_name, unpack(args) }
-end
-
return {
default_config = {
- cmd = cmd,
+ cmd = {
+ 'ngserver',
+ '--stdio',
+ '--tsProbeLocations',
+ default_probe_dir,
+ '--ngProbeLocations',
+ default_probe_dir,
+ },
filetypes = { 'typescript', 'html', 'typescriptreact', 'typescript.tsx' },
-- Check for angular.json since that is the root of the project.
-- Don't check for tsconfig.json or package.json since there are multiple of these