未选择状态窗口阴影

This commit is contained in:
Sakura 2022-09-27 10:52:12 +08:00
parent 46667fdb4b
commit a48f2f7ab8
3 changed files with 19 additions and 0 deletions

View File

@ -16,6 +16,8 @@ require "user.hop"
require "user.tabby" require "user.tabby"
-- 平滑滚动 -- 平滑滚动
require "user.cinnamon" require "user.cinnamon"
-- 未选择状态窗口阴影
require "user.shade"
-- 配置初始化 -- 配置初始化
require "config.init" require "config.init"

View File

@ -89,6 +89,9 @@ return packer.startup({function(use)
-- 平滑滚动 -- 平滑滚动
use {'declancm/cinnamon.nvim'} use {'declancm/cinnamon.nvim'}
-- 未选择状态窗口阴影
use {'sunjon/shade.nvim'}
-- 克隆packer.nvim后自动配置 -- 克隆packer.nvim后自动配置
-- 把这个放在所有插件之后 -- 把这个放在所有插件之后
if PACKER_BOOTSTRAP then if PACKER_BOOTSTRAP then

14
lua/user/shade.lua Normal file
View File

@ -0,0 +1,14 @@
local status_ok, shade = pcall(require, "shade")
if not status_ok then
return
end
shade.setup({
overlay_opacity = 50,
opacity_step = 1,
keys = {
-- brightness_up = '<C-Up>',
-- brightness_down = '<C-Down>',
-- toggle = '<Leader>s'
}
})