fix: add auto comment/uncomment for HCL files now properly
This commit is contained in:
parent
34078a0fa4
commit
bd999072f8
2 changed files with 13 additions and 15 deletions
|
|
@ -1,6 +0,0 @@
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
|
||||||
pattern = "terraform",
|
|
||||||
callback = function()
|
|
||||||
vim.bo.commentstring = "# %s"
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
@ -7,13 +7,17 @@ vim.api.nvim_create_autocmd("TextYankPost", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- NOTE: the config below was put to after/ftplugin to make it simpler
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
|
pattern = "trouble",
|
||||||
|
callback = function()
|
||||||
|
vim.opt.colorcolumn = ""
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
-- Disable colorcolumn on quickfix (qf) windows
|
-- https://github.com/LazyVim/LazyVim/discussions/654
|
||||||
-- vim.api.nvim_create_autocmd("FileType", {
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
-- group = vim.api.nvim_create_augroup("weeheavy-no-colorcolumn-in-quickfix", { clear = true }),
|
pattern = "terraform",
|
||||||
-- pattern = { "qf", "Trouble" },
|
callback = function()
|
||||||
-- callback = function()
|
vim.bo.commentstring = "# %s"
|
||||||
-- vim.opt.colorcolumn = ""
|
end,
|
||||||
-- end,
|
})
|
||||||
-- })
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue