1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 12:48:01 +00:00

[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

View File

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