Browse Source

.tf are converted to .hcl for treesitter

Chris 4 years ago
parent
commit
6da71bab94
1 changed files with 5 additions and 0 deletions
  1. 5 0
      lua/lv-utils/init.lua

+ 5 - 0
lua/lv-utils/init.lua

@@ -67,6 +67,11 @@ lv_utils.define_augroups {
     { "BufWritePost", "lv-config.lua", "lua require('lv-utils').reload_lv_config()" },
     -- { "VimLeavePre", "*", "set title set titleold=" },
   },
+  _solidity = {
+    { "BufWinEnter", ".tf", "setlocal filetype=hcl" },
+    { "BufRead", "*.tf", "setlocal filetype=hcl" },
+    { "BufNewFile", "*.tf", "setlocal filetype=hcl" },
+  },
   -- _solidity = {
   --     {'BufWinEnter', '.sol', 'setlocal filetype=solidity'}, {'BufRead', '*.sol', 'setlocal filetype=solidity'},
   --     {'BufNewFile', '*.sol', 'setlocal filetype=solidity'}