1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-04 14:39:25 +00:00

[neovim] Format hcl files on save

This commit is contained in:
2024-09-26 20:21:33 +02:00
parent 32417a0bce
commit 6c42fb1c09
2 changed files with 6 additions and 1 deletions

View File

@ -48,6 +48,10 @@ vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, {
]])
end,
})
vim.api.nvim_create_autocmd("FileType", {
pattern = "hcl",
command = "setlocal shiftwidth=2 tabstop=2",
})
-- Disable some plugins on very large files
vim.api.nvim_create_autocmd({ "BufEnter" }, {