From 810122d88bfeb1a74e25c84e14fb2797eca3c7c5 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Mon, 11 Sep 2023 13:53:09 +0200 Subject: [PATCH] Add colorcolumn --- .editorconfig | 2 +- lua/core/options.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 29ff0b1..332c8e7 100644 --- a/.editorconfig +++ b/.editorconfig @@ -38,7 +38,7 @@ continuation_indent = 4 # this mean utf8 length , if this is 'unset' then the line width is no longer checked # this option decides when to chopdown the code -max_line_length = 120 +max_line_length = 80 # optional crlf/lf/cr/auto, if it is 'auto', in windows it is crlf other platforms are lf # in neovim the value 'auto' is not a valid option, please use 'unset' diff --git a/lua/core/options.lua b/lua/core/options.lua index 3d52461..933be87 100644 --- a/lua/core/options.lua +++ b/lua/core/options.lua @@ -84,3 +84,5 @@ vim.opt.diffopt:append({ "indent-heuristic", "algorithm:histogram", }) vim.fn.execute("filetype plugin on") vim.opt.hlsearch = false vim.opt.laststatus = 3 +vim.opt.textwidth = 80 +vim.opt.colorcolumn = '+1'