Set scrolloff so cursor stays centered
This commit is contained in:
parent
15c12fa261
commit
10486fac3c
2 changed files with 26 additions and 27 deletions
6
init.lua
6
init.lua
|
|
@ -101,9 +101,6 @@ require('lazy').setup({
|
|||
'folke/neodev.nvim',
|
||||
},
|
||||
},
|
||||
{
|
||||
'simrat39/rust-tools.nvim'
|
||||
},
|
||||
|
||||
{
|
||||
-- Autocompletion
|
||||
|
|
@ -302,6 +299,9 @@ vim.o.mouse = 'a'
|
|||
-- See `:help 'clipboard'`
|
||||
vim.o.clipboard = 'unnamedplus'
|
||||
|
||||
-- Centers the cursor after jumping
|
||||
vim.o.scrolloff = 999
|
||||
|
||||
-- Enable break indent
|
||||
vim.o.breakindent = true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue