use hcl filetype for terraform files
This commit is contained in:
parent
83f518cb5e
commit
cca2e20907
@ -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')",
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user