Closed BrayanLope5 closed 2 months ago
This really isn't something that Chezmoi can do, but some editors have user-contributed extensions that can assist with this. I personally use alker0/chezmoi.vim and it works quite well. If you use emacs, there appears to be a solid extension available for that.
There is nothing currently available in the VS Code marketplace, and I doubt there is anything for Helix, Zed, or the Jetbrains family of editors.
What exactly are you trying to do?
I am not sure this is the best place to add this but I was wondering if there is any way to give an editor the appropriate file extension when using chezmoi templates with the tmpl extension. For example, if I open my hyprland config with chezmoi edit, it has no syntax highlighting because the file has the extension for chezmoi templates. I use the helix editor on the terminal by the way.
What have you tried so far?
I've had to assign the appropriate language to each file I open that is a chezmoi template.
Where else have you checked for solutions?
Output of any commands you've tried with
--verbose
flagJust opens the tmpl file with no syntax highlighting.
Output of
chezmoi doctor
Additional context
None.