diff --git a/nvim/lua/filetype.lua b/nvim/lua/filetype.lua index 9991ea3..3242210 100644 --- a/nvim/lua/filetype.lua +++ b/nvim/lua/filetype.lua @@ -21,3 +21,9 @@ vim.api.nvim_create_autocmd({'BufNewFile', 'BufRead'}, { command = 'setlocal tabstop=2 softtabstop=2 shiftwidth=2' }) +vim.api.nvim_create_autocmd({'BufNewFile', 'BufRead'}, { + pattern = {'*.tf',}, + group = 'FileTypeIndent', + command = 'setlocal tabstop=2 softtabstop=2 shiftwidth=2' +}) + diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua index b94ba5c..c98f833 100644 --- a/nvim/lua/plugins.lua +++ b/nvim/lua/plugins.lua @@ -92,6 +92,7 @@ lazy.setup({ "c", "diff", "go", + "hcl", "html", "javascript", "jsdoc", @@ -106,6 +107,7 @@ lazy.setup({ "query", "regex", "rust", + "terraform", "toml", "tsx", "typescript",