should work better now
This commit is contained in:
parent
8f05b02766
commit
32f636c41b
34 changed files with 233 additions and 2298 deletions
14
lsp/angularls.lua
Normal file
14
lsp/angularls.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue