[neovim] Ensure terraform files use hcl LSP

This commit is contained in:
Daniel Carrillo 2023-02-15 20:20:45 +01:00
parent 47a9afae4b
commit 256d06bc31
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
1 changed files with 10 additions and 0 deletions

View File

@ -41,3 +41,13 @@ vim.api.nvim_create_autocmd({ "VimLeavePre" }, {
Session.store(vim.loop.cwd())
end,
})
-- Ensure terraform files use hcl LSP
vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, {
pattern = { "*.tf" },
callback = function()
vim.cmd([[
set filetype=hcl
]])
end,
})