添加平滑滚动

This commit is contained in:
Sakura 2022-09-27 10:50:13 +08:00
parent e3017b80f9
commit 46667fdb4b
3 changed files with 11 additions and 0 deletions

View File

@ -14,6 +14,8 @@ require "user.lualine"
require "user.hop"
-- tab栏显示
require "user.tabby"
-- 平滑滚动
require "user.cinnamon"
-- 配置初始化
require "config.init"

5
lua/user/cinnamon.lua Normal file
View File

@ -0,0 +1,5 @@
local status_ok, cinnamon = pcall(require, "cinnamon")
if not status_ok then
return
end
cinnamon.setup()

View File

@ -73,6 +73,7 @@ return packer.startup({function(use)
}
-- tab栏
use 'nanozuki/tabby.nvim'
-- 光标全局跳转
use {
'phaazon/hop.nvim',
@ -85,6 +86,9 @@ return packer.startup({function(use)
end
}
-- 平滑滚动
use {'declancm/cinnamon.nvim'}
-- 克隆packer.nvim后自动配置
-- 把这个放在所有插件之后
if PACKER_BOOTSTRAP then