mirror of
https://github.com/neovim/neovim.git
synced 2025-12-27 16:49:13 +00:00
vim-patch:9.1.1177: filetype: tera files not detected
Problem: filetype: tera files not detected
Solution: detect '*.tera' files as tera filetype,
include a simple filetype plugin
(MuntasirSZN)
closes: vim/vim#16806
5daaf23268
Co-authored-by: MuntasirSZN <muntasir.joypurhat@gmail.com>
This commit is contained in:
committed by
Christian Clason
parent
7371abf755
commit
e46f07b1d2
13
runtime/ftplugin/tera.vim
Normal file
13
runtime/ftplugin/tera.vim
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
" Vim filetype plugin file
|
||||||
|
" Language: Tera
|
||||||
|
" Maintainer: Muntasir Mahmud <muntasir.joypurhat@gmail.com>
|
||||||
|
" Last Change: 2025 Mar 06
|
||||||
|
|
||||||
|
if exists("b:did_ftplugin")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
|
setlocal commentstring={#\ %s\ #}
|
||||||
|
|
||||||
|
let b:undo_ftplugin = "setlocal commentstring<"
|
||||||
@@ -1207,6 +1207,7 @@ local extension = {
|
|||||||
tl = 'teal',
|
tl = 'teal',
|
||||||
templ = 'templ',
|
templ = 'templ',
|
||||||
tmpl = 'template',
|
tmpl = 'template',
|
||||||
|
tera = 'tera',
|
||||||
ti = 'terminfo',
|
ti = 'terminfo',
|
||||||
dtx = 'tex',
|
dtx = 'tex',
|
||||||
ltx = 'tex',
|
ltx = 'tex',
|
||||||
|
|||||||
@@ -801,6 +801,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'teal': ['file.tl'],
|
\ 'teal': ['file.tl'],
|
||||||
\ 'templ': ['file.templ'],
|
\ 'templ': ['file.templ'],
|
||||||
\ 'template': ['file.tmpl'],
|
\ 'template': ['file.tmpl'],
|
||||||
|
\ 'tera': ['file.tera'],
|
||||||
\ 'teraterm': ['file.ttl'],
|
\ 'teraterm': ['file.ttl'],
|
||||||
\ 'terminfo': ['file.ti'],
|
\ 'terminfo': ['file.ti'],
|
||||||
\ 'terraform-vars': ['file.tfvars'],
|
\ 'terraform-vars': ['file.tfvars'],
|
||||||
|
|||||||
Reference in New Issue
Block a user