From 62e01fd05e567c5fbf56b6838d0ed3a7d8ffa744 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 28 Aug 2025 01:48:26 +0300 Subject: Added dependent colorcolumn --- .config/nvim/lua/options.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/options.lua b/.config/nvim/lua/options.lua index 0a25a8d..cb1e790 100644 --- a/.config/nvim/lua/options.lua +++ b/.config/nvim/lua/options.lua @@ -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 -- cgit v1.3.1