Took a new job and ended up putting emacs aside. Using Google's Lit framework is unbearable on emacs. It has some deeply nested html/js in template strings and emacs can't keep up with the nesting.
I'm not familiar with Lit, but if emacs can't grok all the nesting, how is it even remotely human comprehensible?
With proper syntax highlighting it's fine. But this is why I have moved away, it's hard to read without good syntax highlighting. I don't know why extensions aren't handling it. Web-mode does but only the first level or so of nesting.
Sounds like a good application for treesitter
It should be able to. Emacs has good built-in support for navigating around substructure as long as you're operating with a mode that recognizes the substructure.
Probably needs its own extension like in vscode.
Is this with or without Treesitter?
Either. The best results I have had was with web-mode which has some basic support for it. I also tried using LSP mode and the two Lit extensions for the Typescript server but that did little to help either.
Figured it out! I had LSP configured to use the two lit typescript-ls plugins but because I was using web-mode, that language-server was never kicking in. Going to try getting treesitter to do the highlighting and then hopefully LSP will provide some nice-to-haves now.