Skip to content

Commit

Permalink
Merge pull request #13 from fabmorais/fix-terraform-comments
Browse files Browse the repository at this point in the history
fix terraform comment
  • Loading branch information
fabmorais authored Feb 12, 2024
2 parents 0a4fe28 + 764f5c1 commit 7e06d68
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lua/comment-config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,14 @@ require("nvim_comment").setup({
operator_mapping = "<leader>c",
comment_chunk_text_object = "ic",
comment_empty = false,

vim.api.nvim_create_augroup("comment", { clear = true }),

vim.api.nvim_create_autocmd({ "BufEnter", "BufFilePost" }, {
group = "comment",
pattern = { "*.tf" },
callback = function()
vim.api.nvim_buf_set_option(0, "commentstring", "# %s")
end,
}),
})

0 comments on commit 7e06d68

Please sign in to comment.