From d1f146490306f08409a6216f68ee5ce027129ed4 Mon Sep 17 00:00:00 2001 From: David Bland Date: Fri, 20 Jun 2025 11:41:57 -0400 Subject: [PATCH] update1 --- init.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/init.lua b/init.lua index 83b6c8a8..863c31b9 100644 --- a/init.lua +++ b/init.lua @@ -275,6 +275,10 @@ require('lazy').setup({ }, }, }, + { + 'karb94/neoscroll.nvim', + opts = {}, + }, { 'nvim-tree/nvim-tree.lua', }, @@ -733,6 +737,32 @@ require('lazy').setup({ 'stylua', -- Used to format Lua code }) require('mason-tool-installer').setup { ensure_installed = ensure_installed } + require('neoscroll').setup { + mappings = { -- Keys to be mapped to their corresponding default scrolling animation + '', + '', + '', + '', + '', + '', + 'zt', + 'zz', + 'zb', + }, + hide_cursor = true, -- Hide cursor while scrolling + stop_eof = true, -- Stop at when scrolling downwards + respect_scrolloff = false, -- Stop scrolling when the cursor reaches the scrolloff margin of the file + cursor_scrolls_alone = true, -- The cursor will keep on scrolling even if the window cannot scroll further + duration_multiplier = 1.0, -- Global duration multiplier + easing = 'linear', -- Default easing function + pre_hook = nil, -- Function to run before the scrolling animation starts + post_hook = nil, -- Function to run after the scrolling animation ends + performance_mode = false, -- Disable "Performance Mode" on all buffers. + ignored_events = { -- Events ignored while scrolling + 'WinScrolled', + 'CursorMoved', + }, + } require('mason-lspconfig').setup { ensure_installed = {}, -- explicitly set to an empty table (Kickstart populates installs via mason-tool-installer)