From 758893b0601c9f713ed3da45a0ab8d52938d489a Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Thu, 7 Mar 2024 12:50:37 +0100 Subject: [PATCH] add horizontal scrolloff option --- lua/options.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/options.lua b/lua/options.lua index e103e56..e70dd0d 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -77,7 +77,8 @@ vim.opt.inccommand = 'split' -- Show which line your cursor is on vim.opt.cursorline = true --- Minimal number of screen lines to keep above and below the cursor. +-- Minimal spacing to keep around the cursor. vim.opt.scrolloff = 8 +vim.opt.sidescrolloff = 12 -- vim: ts=2 sts=2 sw=2 et