mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.4238: *.tf file could be fileytpe "tf" or "terraform"
Problem: *.tf file could be fileytpe "tf" or "terraform".
Solution: Detect the type from the file contents. (closes vim/vim#9642)
bd8168c770
This commit is contained in:
@@ -661,7 +661,6 @@ local extension = {
|
||||
txi = "texinfo",
|
||||
texinfo = "texinfo",
|
||||
text = "text",
|
||||
tf = "tf",
|
||||
tfvars = "terraform",
|
||||
tla = "tla",
|
||||
tli = "tli",
|
||||
@@ -827,6 +826,7 @@ local extension = {
|
||||
stm = function() vim.fn["dist#ft#FThtml"]() end,
|
||||
tcsh = function() vim.fn["dist#ft#SetFileTypeShell"]("tcsh") end,
|
||||
tex = function() vim.fn["dist#ft#FTtex"]() end,
|
||||
tf = function() vim.fn["dist#ft#FTtf"]() end,
|
||||
w = function() vim.fn["dist#ft#FTprogress_cweb"]() end,
|
||||
xml = function() vim.fn["dist#ft#FTxml"]() end,
|
||||
y = function() vim.fn["dist#ft#FTy"]() end,
|
||||
|
||||
Reference in New Issue
Block a user