enc: move config auto br from autocmd to vertcolumn config

This commit is contained in:
asep.komarudin 2024-06-08 06:10:53 +07:00
parent e7cf581b2a
commit 33335939d0
4 changed files with 63 additions and 64 deletions

View file

@ -13,6 +13,17 @@ if vim.g.pcode_columnline then
},
char = icons.ui.LineMiddle,
}
-- Mengatur colum color max 80 caracter
vim.api.nvim_create_autocmd("BufWinEnter", {
pattern = "*",
callback = function()
vim.opt.formatoptions = "croql"
vim.opt.textwidth = 80
vim.opt.colorcolumn = "+1"
vim.opt.lazyredraw = false
-- vim.cmd "hi ColorColumn guibg=#1B2430 ctermbg=246"
end,
})
end,
},
}