should work better now

This commit is contained in:
Zoty 2026-04-13 15:49:15 -03:00
parent 8f05b02766
commit 32f636c41b
Signed by: Zoty
SSH key fingerprint: SHA256:WsGEGivgl37t3Mth6uugXMOgMCTR7QolIepNbC+j/tA
34 changed files with 233 additions and 2298 deletions

14
lsp/angularls.lua Normal file
View 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,
}