diff --git a/home/dot_config/nvim/init.lua b/home/dot_config/nvim/init.lua index e97027b..390a09f 100644 --- a/home/dot_config/nvim/init.lua +++ b/home/dot_config/nvim/init.lua @@ -61,8 +61,9 @@ vim.o.splitbelow = true -- Use treesitter for folding vim.wo.foldmethod = 'expr' vim.wo.foldexpr = 'v:lua.vim.treesitter.foldexpr()' -vim.o.foldlevelstart = 6 -vim.o.foldnestmax = 5 +vim.opt.foldtext = '' +vim.o.foldlevelstart = 2 +vim.o.foldnestmax = 4 -- WHitespace vim.o.expandtab = true @@ -88,7 +89,10 @@ vim.o.inccommand = 'split' vim.o.cursorline = true -- Minimal number of screen lines to keep above and below the cursor. -vim.o.scrolloff = 10 +vim.o.scrolloff = 7 + +-- Increase amount of scrolling the mouse does +vim.o.mousescroll = 'ver:2,hor:2' -- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`), -- instead raise a dialog asking if you wish to save the current file(s) diff --git a/home/dot_config/nvim/lua/custom/plugins/animate.lua b/home/dot_config/nvim/lua/custom/plugins/animate.lua index 0732304..9f7adcf 100644 --- a/home/dot_config/nvim/lua/custom/plugins/animate.lua +++ b/home/dot_config/nvim/lua/custom/plugins/animate.lua @@ -1,6 +1,6 @@ return { { 'echasnovski/mini.animate', - opts = {}, + opts = { scroll = { timing = require('mini.animate').gen_timing.quadratic { duration = 10, unit = 'step' } } }, }, }