diff options
| author | Robert Günzler <r@gnzler.io> | 2022-11-04 16:36:38 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2022-11-18 18:37:23 +0100 |
| commit | ca51f3169aeecfd78c8b27c941a0f6bb3838c38c (patch) | |
| tree | 4338ae915bbeab8976cf3e90b505a2e645be40cc /.vim | |
| parent | 4e4bd3beb90a4057ca97086bc4ba1acde109b65f (diff) | |
vim: make colorcolumn less brute-force
Diffstat (limited to '.vim')
| -rw-r--r-- | .vim/init.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.vim/init.lua b/.vim/init.lua index 1e4ee39..97ce306 100644 --- a/.vim/init.lua +++ b/.vim/init.lua @@ -11,7 +11,8 @@ local opt = vim.opt opt.backspace = 'indent,eol,start' opt.clipboard:prepend { 'unnamedplus' } opt.cmdheight = 1 -opt.colorcolumn = {80} -- depends on 'textwidth' +opt.colorcolumn = '+1' +opt.formatoptions:remove 't' -- opt.complete = '.,w,b,u' opt.completeopt = {'menu','menuone','noinsert'} opt.concealcursor = '' @@ -61,8 +62,9 @@ opt.signcolumn = 'auto' opt.smartcase = true opt.spell = false opt.spelllang = {'en_gb'} +-- opt.splitkeep = 'topline' opt.termguicolors = true -opt.textwidth = 0 +opt.textwidth = 80 opt.timeoutlen = 400 opt.title = true opt.ttimeoutlen = 10 |