Skip to content

Commit

Permalink
add hcl terraform
Browse files Browse the repository at this point in the history
Signed-off-by: Takashi Iiguni <[email protected]>
  • Loading branch information
guni1192 committed Jun 10, 2024
1 parent 3ef5293 commit b01b911
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nvim/lua/filetype.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ vim.api.nvim_create_autocmd({'BufNewFile', 'BufRead'}, {
command = 'setlocal tabstop=2 softtabstop=2 shiftwidth=2'
})

vim.api.nvim_create_autocmd({'BufNewFile', 'BufRead'}, {
pattern = {'*.tf',},
group = 'FileTypeIndent',
command = 'setlocal tabstop=2 softtabstop=2 shiftwidth=2'
})

2 changes: 2 additions & 0 deletions nvim/lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ lazy.setup({
"c",
"diff",
"go",
"hcl",
"html",
"javascript",
"jsdoc",
Expand All @@ -106,6 +107,7 @@ lazy.setup({
"query",
"regex",
"rust",
"terraform",
"toml",
"tsx",
"typescript",
Expand Down

0 comments on commit b01b911

Please sign in to comment.