From 165f2b5173ecb4196afe4e36d616ba3207e5fdb9 Mon Sep 17 00:00:00 2001 From: jiriks74 Date: Tue, 21 May 2024 15:25:03 +0200 Subject: [PATCH] feat(general): Add second colorcolumn at position 80 Helps with aligning text in Markdown, etc. --- nvim/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nvim/init.lua b/nvim/init.lua index 4109f4b..8ec4114 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -6,6 +6,7 @@ local g = vim.g -- key. Defaults to `\`. Some people prefer space. g.mapleader = ' ' -- g.maplocalleader = ' ' +vim.opt.wrap = false opt.compatible = false @@ -26,6 +27,8 @@ opt.lazyredraw = true opt.showmatch = true -- Highlight matching parentheses, etc opt.incsearch = true opt.hlsearch = true +opt.ignorecase = true -- Make search case insensitive +opt.smartcase = true -- Overrides ignorecase if your pattern contains mixed case opt.spell = true opt.spelllang = 'en' @@ -100,7 +103,7 @@ vim.diagnostic.config { g.editorconfig = true cmd[[colorscheme tokyonight]] -vim.opt.colorcolumn = '100' +vim.opt.colorcolumn = '80,100' -- Native plugins cmd.filetype('plugin', 'indent', 'on')