4 ms·
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
by pard68 3y ago
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.
- rs_rs_rs_rs_rs 3y agoIs this with or without Treesitter?
- pard68 3y agoEither. 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.
- pard68 3y agoFigured 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.
- deleted 3y ago[deleted]
- jackcviers3 3y agoProbably needs its own extension like in vscode.
- shadowgovt 3y agoIt 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.
- Paul-Craft 3y agoI'm not familiar with Lit, but if emacs can't grok all the nesting, how is it even remotely human comprehensible?
- pard68 3y agoWith 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.
- weebull 3y agoSounds like a good application for treesitter