diff --git a/init.lua b/init.lua index 5685ed0..3fe7aa3 100755 --- a/init.lua +++ b/init.lua @@ -16,6 +16,8 @@ require "user.hop" require "user.tabby" -- 平滑滚动 require "user.cinnamon" +-- 未选择状态窗口阴影 +require "user.shade" -- 配置初始化 require "config.init" diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua index 1517c87..5112cb1 100755 --- a/lua/user/plugins.lua +++ b/lua/user/plugins.lua @@ -89,6 +89,9 @@ return packer.startup({function(use) -- 平滑滚动 use {'declancm/cinnamon.nvim'} + -- 未选择状态窗口阴影 + use {'sunjon/shade.nvim'} + -- 克隆packer.nvim后自动配置 -- 把这个放在所有插件之后 if PACKER_BOOTSTRAP then diff --git a/lua/user/shade.lua b/lua/user/shade.lua new file mode 100644 index 0000000..a9090dc --- /dev/null +++ b/lua/user/shade.lua @@ -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 = '', + -- brightness_down = '', + -- toggle = 's' + } +})