Remove ambiguity for terraform files, #570

This commit is contained in:
Adam Stankiewicz
2020-09-29 19:35:05 +02:00
parent 1872af2d5e
commit b5cc8fc336
3 changed files with 5 additions and 3 deletions

View File

@@ -198,7 +198,7 @@ let s:globs = {
\ 'systemd': '*.automount,*.dnssd,*.link,*.mount,*.netdev,*.network,*.nspawn,*.path,*.service,*.slice,*.socket,*.swap,*.target,*.timer,*.#*', \ 'systemd': '*.automount,*.dnssd,*.link,*.mount,*.netdev,*.network,*.nspawn,*.path,*.service,*.slice,*.socket,*.swap,*.target,*.timer,*.#*',
\ 'tablegen': '*.td', \ 'tablegen': '*.td',
\ 'tads': '*.t', \ 'tads': '*.t',
\ 'terraform': '*.hcl,*.nomad,*.tf,*.tfvars,*.workflow', \ 'terraform': '*.tf,*.tfvars',
\ 'textile': '*.textile', \ 'textile': '*.textile',
\ 'thrift': '*.thrift', \ 'thrift': '*.thrift',
\ 'tmux': '.tmux*.conf', \ 'tmux': '.tmux*.conf',

View File

@@ -1272,7 +1272,7 @@ if !has_key(s:disabled_packages, 'systemd')
endif endif
if !has_key(s:disabled_packages, 'terraform') if !has_key(s:disabled_packages, 'terraform')
au BufNewFile,BufRead *.hcl,*.nomad,*.tf,*.tfvars,*.workflow set ft=terraform au BufNewFile,BufRead *.tf,*.tfvars set ft=terraform
endif endif
if !has_key(s:disabled_packages, 'textile') if !has_key(s:disabled_packages, 'textile')

View File

@@ -1606,7 +1606,9 @@ name: terraform
remote: hashivim/vim-terraform remote: hashivim/vim-terraform
filetypes: filetypes:
- name: terraform - name: terraform
linguist: HCL extensions:
- tf
- tfvars
--- ---
name: textile name: textile
remote: timcharper/textile.vim remote: timcharper/textile.vim