diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-01-28 16:59:17 +0100 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2022-01-28 17:01:13 +0100 |
commit | 5b9980f01eb021b0d84f540a6618f94ad2727153 (patch) | |
tree | ef70ee0b3e6eb7d56e56b00d3e893bef804cd405 /runtime/lua/vim | |
parent | 6cb670cb2ce83a50177eaf37656c0b3c07c3ffde (diff) | |
download | rneovim-5b9980f01eb021b0d84f540a6618f94ad2727153.tar.gz rneovim-5b9980f01eb021b0d84f540a6618f94ad2727153.tar.bz2 rneovim-5b9980f01eb021b0d84f540a6618f94ad2727153.zip |
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)
https://github.com/vim/vim/commit/bd8168c7705e315827642f2976ec59e26b7fe009
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/filetype.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index bd3b44e95b..7fa2fbe001 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -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, |