Add multicolumn plugin to show max line length

This commit is contained in:
2026-03-13 17:46:17 +01:00
parent 9df3d54a4b
commit 0c159fd129
2 changed files with 39 additions and 0 deletions

View File

@@ -22,6 +22,7 @@
"mason-lspconfig.nvim": { "branch": "main", "commit": "a676ab7282da8d651e175118bcf54483ca11e46d" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "443f1ef8b5e6bf47045cb2217b6f748a223cf7dc" },
"mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" },
"multicolumn.nvim": { "branch": "master", "commit": "a363bdfd422abf26256f343dac4df183031f8e94" },
"neo-tree.nvim": { "branch": "v3.x", "commit": "9d6826582a3e8c84787bd7355df22a2812a1ad59" },
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
"nvim-colorizer.lua": { "branch": "master", "commit": "ef211089af881bea206c7aa3f2693a81feee7e90" },

View File

@@ -0,0 +1,38 @@
-- https://github.com/aznhe21/fmbarina/multicolumn.nvim
--- @module "lazy"
--- @type LazySpec
return {
"fmbarina/multicolumn.nvim",
event = { "BufReadPre", "BufNewFile" },
opts = {
base_set = {
full_column = true,
rulers = { 10 },
},
sets = {
python = {
rulers = { 89 },
},
rust = {
rulers = { 101 },
},
gitcommit = function(_, win)
local T = function(c, x, y)
if c then
return x
else
return y
end
end
return {
scope = T(vim.fn.line(".", win) == 1, "line", "window"),
rulers = { T(vim.fn.line(".", win) == 1, 51, 73) },
to_line_end = true,
bg_color = "#691b1b",
fg_color = "#ffd8ad",
}
end,
},
},
}