Added dependent colorcolumn

This commit is contained in:
2025-08-28 01:48:26 +03:00
parent d0b0acabfa
commit 62e01fd05e

View File

@@ -15,7 +15,6 @@ vim.opt.shiftwidth = 4 -- number of spaces to insert on tab
-- UI
vim.opt.number = true
vim.opt.colorcolumn = '100'
vim.opt.signcolumn = 'no'
vim.opt.relativenumber = true
vim.opt.cursorline = true -- highlight current line
@@ -32,6 +31,13 @@ vim.opt.linebreak = true -- wrap lines at convenient points
vim.opt.laststatus = 3 -- global stautsline
vim.opt.smoothscroll = true
local dir = vim.fn.fnamemodify(vim.fn.getcwd(), ':t')
if dir == 'grimoire' then
vim.opt.colorcolumn = '0'
else
vim.opt.colorcolumn = '100'
end
-- Searching
vim.opt.hlsearch = true
vim.opt.ignorecase = true