From 5dfeaad88276ebc3fcc8db67ce791671121b4bfe Mon Sep 17 00:00:00 2001 From: Scott Carroll Date: Tue, 18 Mar 2025 22:45:44 +0000 Subject: [PATCH] set scrolloff and colorcolumn --- init.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.lua b/init.lua index 811cdf0..5f2f2a6 100644 --- a/init.lua +++ b/init.lua @@ -29,6 +29,13 @@ vim.opt.autoindent = true vim.opt.smartindent = true -- a stricter alternative which works better for the C language: vim.opt.cindent = true + +-- keep cursor away from the top and bottom of the screen +vim.opt.scrolloff = 6 + +-- marker at line 80 +vim.opt.colorcolumn = "80" + -- use language‐specific plugins for indenting (better): vim.cmd("filetype plugin indent on")