use hcl filetype for terraform files

This commit is contained in:
Michael Peters 2024-04-29 09:58:31 -07:00
parent 83f518cb5e
commit cca2e20907

View File

@ -42,3 +42,11 @@ vim.api.nvim_create_autocmd('Filetype', {
pattern = { 'python', 'sent' },
command = 'setlocal expandtab tabstop=4 shiftwidth=4',
})
-- use hcl for terraform files
vim.api.nvim_create_augroup('setFiletypeTerraform', { clear = true })
vim.api.nvim_create_autocmd('Filetype', {
group = 'setExpandTabPython',
pattern = 'terraform',
command = "lua vim.api.nvim_buf_set_option(0, 'filetype', 'hcl')",
})