Skip to content
Discussion options

You must be logged in to vote

Hello! First of all, sorry for the delay in responding.

As for the differences, the main one is that my plugin tries to detect and apply the original filetype from the target path to the source file being edited. This allows things like LSP, syntax highlighting, completions, and Tree-sitter parsers to work on the source file just as they do for the target file.

For example, the filetype for ".bashrc" in my Neovim config is "sh". However, when added to chezmoi as a template, the source file is named "dot_bashrc.tmpl", and Neovim detects it as a template filetype.

However, if you use nvim-chezmoi:

This detection happens automatically whenever you open a source file from the command line (n…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@kiwi-the-first
Comment options

@103sbavert
Comment options

Answer selected by andre-kotake
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants