mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 08:28:34 +00:00
vim-patch:9.0.0084: using "terraform" filetype for .tfvars file is bad (#19526)
Problem: Using "terraform" filetype for .tfvars file is bad.
Solution: use "terraform-vars", so that different completion and other
mechanisms can be used. (Radek Simko, closes vim/vim#10755)
15b87b6610
This commit is contained in:
@@ -1983,8 +1983,8 @@ au BufRead,BufNewFile *.ttl
|
||||
" Terminfo
|
||||
au BufNewFile,BufRead *.ti setf terminfo
|
||||
|
||||
" Terraform
|
||||
au BufRead,BufNewFile *.tfvars setf terraform
|
||||
" Terraform variables
|
||||
au BufRead,BufNewFile *.tfvars setf terraform-vars
|
||||
|
||||
" TeX
|
||||
au BufNewFile,BufRead *.latex,*.sty,*.dtx,*.ltx,*.bbl setf tex
|
||||
|
@@ -969,7 +969,7 @@ local extension = {
|
||||
txi = 'texinfo',
|
||||
texinfo = 'texinfo',
|
||||
text = 'text',
|
||||
tfvars = 'terraform',
|
||||
tfvars = 'terraform-vars',
|
||||
tla = 'tla',
|
||||
tli = 'tli',
|
||||
toml = 'toml',
|
||||
|
@@ -548,7 +548,7 @@ let s:filename_checks = {
|
||||
\ 'template': ['file.tmpl'],
|
||||
\ 'teraterm': ['file.ttl'],
|
||||
\ 'terminfo': ['file.ti'],
|
||||
\ 'terraform': ['file.tfvars'],
|
||||
\ 'terraform-vars': ['file.tfvars'],
|
||||
\ 'tex': ['file.latex', 'file.sty', 'file.dtx', 'file.ltx', 'file.bbl'],
|
||||
\ 'texinfo': ['file.texinfo', 'file.texi', 'file.txi'],
|
||||
\ 'texmf': ['texmf.cnf'],
|
||||
|
Reference in New Issue
Block a user