diff options
| author | Kyren223 <contact@kyren.codes> | 2025-08-28 01:48:26 +0300 |
|---|---|---|
| committer | Kyren223 <contact@kyren.codes> | 2025-08-28 01:48:26 +0300 |
| commit | 62e01fd05e567c5fbf56b6838d0ed3a7d8ffa744 (patch) | |
| tree | b432bb21a62ac4070858b1802dd0aa89fc1836e3 /.config/nvim/lua | |
| parent | d0b0acabfa58df71a195b508c23775957bd87ac6 (diff) | |
Added dependent colorcolumn
Diffstat (limited to '.config/nvim/lua')
| -rw-r--r-- | .config/nvim/lua/options.lua | 8 |
1 files changed, 7 insertions, 1 deletions
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 |
