reddit / emacs

Favorite tips/tricks for editing Helm charts?

AnotherDevArchSecOps · 2022-12-05 00:19
I saw a demo over at EmacsConf that is related to tree-sitter and the presenter showed a helm chart file and showed fancy-narrow with it. If there is one format that I often use, it's helm chart files and they can be quite frustrating to edit; the error messages can be somewhat obscure at times, too, so any help I could get from Emacs would be fantastic. Even getting the indentation right can be really troublesome. I'm not sure if there is a good way to have Helm's extra syntax be handled better than yaml-mode seems to do. I installed the emacs-plus@29 on a Mac, and it seems to have some tree-sitter support in core, but it seems yaml support might not be there? Anyone else have tips on build(s) to use that might have this in there? From some of the activity it seemed it might be in the works; maybe nightly builds are needed to pick this up?
arashbijan · 2022-12-05 00:44
I just watched tree sitter presentation on emacsconf, and yaml editing bit was AMAZING https://emacsconf.org/2022/talks/treesitter/
AnotherDevArchSecOps · 2022-12-05 02:17
Yes, exactly. It's very amazing. I'm trying get this to work with 29 core version of tree-sitter, but maybe I should stick to the external package for now. I'm also having some weird glyphs show up with tree-sitter when I'm working on something that is supported OOTB, like JSON: [https://i.imgur.com/3nvYumW.png](https://i.imgur.com/3nvYumW.png)
JohnDoe365 · 2022-12-05 10:05
AFAIK that's not tree-sitter but the bread-crumb feature of lsp-mode?