14 lines
455 B
Lua
14 lines
455 B
Lua
return {
|
|
cmd = { 'ngserver', '--stdio', '--tsProbeLocations', '', '--ngProbeLocations', '' },
|
|
filetypes = { 'typescript', 'html', 'htmlangular' },
|
|
root_markers = { 'angular.json' },
|
|
on_new_config = function(new_config, new_root_dir)
|
|
local node_modules = new_root_dir .. '/node_modules'
|
|
new_config.cmd = {
|
|
'ngserver',
|
|
'--stdio',
|
|
'--tsProbeLocations', node_modules,
|
|
'--ngProbeLocations', node_modules,
|
|
}
|
|
end,
|
|
}
|