1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2026-04-15 19:54:48 +02:00

Nvim: Colorcolumn is now set more intuitively

This commit is contained in:
2026-04-11 10:04:50 +02:00
parent 63aa8f2db5
commit 5282835ae9

View File

@@ -121,7 +121,7 @@ vim.diagnostic.config({
-- enable colorcolumn when textwidth is set -- enable colorcolumn when textwidth is set
vim.o.cursorline = true vim.o.cursorline = true
vim.opt_local.colorcolumn = "+" .. vim.fn.join(vim.fn.range(0, 254), ",+") vim.opt_local.colorcolumn = "+" .. vim.fn.join(vim.fn.range(1, 254), ",+")
-- alternatively highlight only one line for colorcolumn -- alternatively highlight only one line for colorcolumn
-- vim.o.colorcolumn = "-0" -- vim.o.colorcolumn = "-0"