Added dependent colorcolumn
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user