1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
local M = {}
function M.setup()
local ok, neoscroll = pcall(require, 'neoscroll')
if not ok then
return false
end
-- Basic configuration
neoscroll.setup({
mappings = {'<C-u>', '<C-d>', '<C-b>', '<C-f>', '<C-y>', '<C-e>', 'zt', 'zz', 'zb'},
hide_cursor = true,
stop_eof = true,
respect_scrolloff = false,
cursor_scrolls_alone = true,
easing_function = 'quadratic',
})
return true
end
return M
|