3 ms·
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
by newusertoday 5y ago
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
- G3rn0ti 5y agoWell, with Emacs you can als just use „etags“ to create an index into your JS code base out of the box. And then use „M-.“ to jump to definitions. It’s very fast and usually brings you right to a definition — unless your method/function is called very unspecifically.
- newusertoday 5y agointeresting, i used to use gtags for browsing c but js required additional dependencies so i abandoned it. If you are using etags for js/ts can you point me to your tag syntax file? i checked here but couldn't find js/ts and i don't want to write it by myself ;-) https://www.gnu.org/software/emacs/manual/html_node/emacs/Tag-Syntax.html https://www.gnu.org/software/emacs/manual/html_node/emacs/Ta...
- natrys 5y agoWhile I have no idea about tags, I want to say that you may find something as simple as dumb-jump[1] does what you want most of the time. [1] https://github.com/jacktasia/dumb-jump https://github.com/jacktasia/dumb-jump
- joseph8th 5y agoYyyyyyyyyyyyyyyyyyuuuuuuuuuuP. 9 times out of 10 it takes me right where I want to go. It's lightweight and fast. And on that 10th time it gives a list of choices to jump to.
- G3rn0ti 5y agoIndeed, the "etags" shipped with Emacs does not support JavaScript. Sorry. If you don't want to mess with its --regex argument, you can install "exuberant-etags" instead: sudo apt install exuberant-ctags ctags-exuberant --list-languages