Set nvim's scrolloff to '8'

This keeps a bit of space around the cursor and the screen borders
when scrolling.
main
Jasper Bok 2024-02-27 18:19:05 +01:00
parent 9db0bcee71
commit 619bb9d7e3
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,9 @@ vim.opt.mouse = ''
vim.g.mapleader = " " vim.g.mapleader = " "
-- Always show 8 lines above or below the cursor when scrolling.
vim.opt.scrolloff = 8
-- ---------------------------------- -- ----------------------------------
-- Filetype configurations -- Filetype configurations
-- ---------------------------------- -- ----------------------------------