mirror of https://github.com/neovim/neovim.git
vim-patch:9.1.0389: filetype: templ files are not recognized
Problem: filetype: templ files are not recognized
Solution: Detect '*.templ' files as filetype templ
(Tristan Knight)
See:
- https://github.com/a-h/templ
- https://templ.guide/
closes: vim/vim#14697
54e79157c5
Co-authored-by: tris203 <admin@snappeh.com>
This commit is contained in:
parent
cb2a36bb5f
commit
ebf8237af8
|
@ -1039,6 +1039,7 @@ local extension = {
|
|||
tk = 'tcl',
|
||||
jacl = 'tcl',
|
||||
tl = 'teal',
|
||||
templ = 'templ',
|
||||
tmpl = 'template',
|
||||
ti = 'terminfo',
|
||||
dtx = 'tex',
|
||||
|
|
|
@ -748,6 +748,7 @@ func s:GetFilenameChecks() abort
|
|||
\ 'tcl': ['file.tcl', 'file.tm', 'file.tk', 'file.itcl', 'file.itk', 'file.jacl', '.tclshrc', 'tclsh.rc', '.wishrc', '.tclsh-history', '.xsctcmdhistory', '.xsdbcmdhistory'],
|
||||
\ 'tablegen': ['file.td'],
|
||||
\ 'teal': ['file.tl'],
|
||||
\ 'templ': ['file.templ'],
|
||||
\ 'template': ['file.tmpl'],
|
||||
\ 'teraterm': ['file.ttl'],
|
||||
\ 'terminfo': ['file.ti'],
|
||||
|
|
Loading…
Reference in New Issue