aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-08-15 01:32:23 +0800
committerjdhao <jdhao@hotmail.com>2021-08-15 01:32:23 +0800
commitc2968eeda49053a2efc5521c1119a751808f401f (patch)
treeb1b6fcd2ff6e1e6fab6679a0b9e6584ab1262fdc
parent9f0fe3972747f51c7ed7cd6bfb8dd02ca7b3fb8f (diff)
Use neoscroll instead of vim-smoothie
-rw-r--r--lua/config/neoscroll.lua3
-rw-r--r--lua/plugins.lua3
2 files changed, 5 insertions, 1 deletions
diff --git a/lua/config/neoscroll.lua b/lua/config/neoscroll.lua
new file mode 100644
index 0000000..294ede7
--- /dev/null
+++ b/lua/config/neoscroll.lua
@@ -0,0 +1,3 @@
+require('neoscroll').setup({
+ easing_function = 'cubic',
+})
diff --git a/lua/plugins.lua b/lua/plugins.lua
index a8fd53a..43275ed 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -248,7 +248,8 @@ require('packer').startup(
use 'andymass/vim-matchup'
-- Smoothie motions
- use 'psliwka/vim-smoothie'
+ -- use 'psliwka/vim-smoothie'
+ use {'karb94/neoscroll.nvim', config = [[require('config.neoscroll')]]}
use 'tpope/vim-scriptease'