Compare commits

...

2 Commits

Author SHA1 Message Date
fa3ec81cf3 Add multicolumn plugin to show max line length 2026-03-13 18:10:55 +01:00
9df3d54a4b Always use Dreaded_X profile for dotfiles 2026-03-13 17:22:06 +01:00
4 changed files with 56 additions and 0 deletions

View File

@@ -2,3 +2,10 @@
path = ~/.dotfiles/git/configs/common.gitconfig path = ~/.dotfiles/git/configs/common.gitconfig
path = ~/.dotfiles/git/profiles/aim-robotics.gitconfig path = ~/.dotfiles/git/profiles/aim-robotics.gitconfig
[includeIf "gitdir:~/.dotfiles/"]
path = ~/.dotfiles/git/profiles/Dreaded_X.gitconfig
; I don't have my private key on work machines
[commit]
gpgsign = false

View File

@@ -2,3 +2,10 @@
path = ~/.dotfiles/git/configs/common.gitconfig path = ~/.dotfiles/git/configs/common.gitconfig
path = ~/.dotfiles/git/profiles/ALTEN.gitconfig path = ~/.dotfiles/git/profiles/ALTEN.gitconfig
[includeIf "gitdir:~/.dotfiles"]
path = ~/.dotfiles/git/profiles/Dreaded_X.gitconfig
; I don't have my private key on work machines
[commit]
gpgsign = false

View File

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

View File

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