diff --git a/init.lua b/init.lua index 5b38017..67496fd 100644 --- a/init.lua +++ b/init.lua @@ -11,3 +11,4 @@ require("fuzzy-finder") require("syntax-highlight") require("lsp-config") require("lsp-format") +require("transparency") diff --git a/lua/plugins.lua b/lua/plugins.lua index 3c37a42..22ffd29 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -4,6 +4,9 @@ if not ok then end packer.startup(function(use) + -- Transparency + use("xiyaowong/nvim-transparent") + -- Base16 colorscheme use("RRethy/nvim-base16") diff --git a/lua/transparency.lua b/lua/transparency.lua new file mode 100644 index 0000000..3fc3377 --- /dev/null +++ b/lua/transparency.lua @@ -0,0 +1,20 @@ +local ok, transparent = pcall(require, "transparent") +if not ok then + return +end + +transparent.setup({ + enable = false, -- boolean: enable transparent + extra_groups = { -- table/string: additional groups that should be cleared + -- In particular, when you set it to 'all', that means all available groups + -- example of akinsho/nvim-bufferline.lua + "BufferLineTabClose", + "BufferlineBufferSelected", + "BufferLineFill", + "BufferLineBackground", + "BufferLineSeparator", + "BufferLineIndicatorSelected", + }, + exclude = {}, -- table: groups you don't want to clear + ignore_linked_group = true, -- boolean: don't clear a group that links to another group +})