Skip to content

Commit

Permalink
fix terraform comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fabmorais committed Feb 12, 2024
1 parent 0a4fe28 commit 764f5c1
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 764f5c1

Please sign in to comment.