1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-10 19:41:15 +02:00

nvim: changed colorcolumn to highlight all after width

This commit is contained in:
2023-12-12 00:22:26 +01:00
parent cc094c591c
commit f1e17ca8eb
2 changed files with 31 additions and 29 deletions

View File

@@ -111,8 +111,10 @@ vim.fn.sign_define(
)
-- enable colorcolumn when textwidth is set
vim.o.colorcolumn = "-0"
vim.o.cursorline = true
vim.opt_local.colorcolumn = '+' .. vim.fn.join(vim.fn.range(0,254), ',+')
-- alternatively highlight only one line for colorcolumn
-- vim.o.colorcolumn = "-0"
-- display certain invisible chars
vim.o.list = true