Skip to content

Conversation

erikson84
Copy link

Expanding on #4079, I refactored the whole Angular LS config so that it employs Neovim's LSP root resolution and created a generic method to collect possible node_modules paths, including if ngserver is installed somewhere inside Neovim's data folder.

Problem:
The current config for Angular LS make strong assumptions when trying to find the root dir, which can lead to unexpected LSP crashes.

Solution:
By defining the 'cmd' field as a function, the config employs Neovim's LSP root resolution to identify the correct path and find the relevant node_modules folder.

@erikson84 erikson84 force-pushed the master branch 2 times, most recently from 82a7a68 to 0dd0b5b Compare September 19, 2025 23:57
Problem:
The current config for Angular LS make strong assumptions when trying to
find the root dir, which can lead to unexpected LSP crashes.

Solution:
By defining the 'cmd' field as a function, the config employs Neovim's
LSP root resolution to identify the correct path and find the relevant
node_modules folder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant