i have stopped using lsp with javascript as js lsp servers are memory/cpu hogs. I wish there was tag based system for js/ts
It’s very fast and usually brings you right to a definition — unless your method/function is called very unspecifically.
sudo apt install exuberant-ctags
ctags-exuberant --list-languages