mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 00:25:47 +02:00
28 lines
649 B
Lua
28 lines
649 B
Lua
|
return {
|
||
|
{
|
||
|
"lukas-reineke/virt-column.nvim",
|
||
|
event = "BufRead",
|
||
|
opts = {},
|
||
|
config = function()
|
||
|
local icons = require("pcode.user.icons")
|
||
|
require("virt-column").overwrite({
|
||
|
exclude = {
|
||
|
filetypes = { "help", "text", "markdown" },
|
||
|
},
|
||
|
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,
|
||
|
},
|
||
|
}
|