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:
parent
47a9afae4b
commit
256d06bc31
@ -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,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user