You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What exactly is the extension of a gohtmltmpl file? Because when I open a file with the extension .gohtmltmpl, the filetype in nvim is set to nothing.
Try set filetype? in nvim and see if the filetype is actually called gohtmltmpl, if it's called something else simply change the name in the config, if the filetype is not set for these files, you should be able to define it with something like this autocmd BufRead,BufNewFile *.gohtmltmpl set filetype=gohtmltmpl in your init.vim.
Sorry for the missing detail. gohtmltmpl is the filetype set by the vim-go plugin, for templates to be used with the Go HTML template package. Basically it uses {{ }} for Go code (not really Go code, more like a DSL) interpolation.
I have some custom detection code that, when opening a .html file, if the file contains {{ and }}, it overrides the filetype to gohtmltmpl.
Running set filetype? returns gohtmltmpl with this in place.
When I use this config:
And trigger kommentary in a
gohtmltmpl
file, it uses just/* */
as the comment string.The text was updated successfully, but these errors were encountered: