diff --git a/lua/astrocommunity/utility/transparent-nvim/README.md b/lua/astrocommunity/utility/transparent-nvim/README.md new file mode 100644 index 000000000..4ddbe3439 --- /dev/null +++ b/lua/astrocommunity/utility/transparent-nvim/README.md @@ -0,0 +1,5 @@ +# transparent + +**Repository:** + +Remove all background colors to make nvim transparent diff --git a/lua/astrocommunity/utility/transparent-nvim/transparent-nvim.lua b/lua/astrocommunity/utility/transparent-nvim/transparent-nvim.lua new file mode 100644 index 000000000..694783e84 --- /dev/null +++ b/lua/astrocommunity/utility/transparent-nvim/transparent-nvim.lua @@ -0,0 +1,42 @@ +local prefix = "u" +return { + "xiyaowong/transparent.nvim", + lazy = false, + opts = { + -- table: default groups + groups = { + "Normal", + "NormalNC", + "Comment", + "Constant", + "Special", + "Identifier", + "Statement", + "PreProc", + "Type", + "Underlined", + "Todo", + "String", + "Function", + "Conditional", + "Repeat", + "Operator", + "Structure", + "LineNr", + "NonText", + "SignColumn", + "CursorLineNr", + "EndOfBuffer", + }, + -- table: additional groups that should be cleared + extra_groups = { + "NormalFloat", + "NvimTreeNormal", + }, + -- table: groups you don't want to clear + exclude_groups = {}, + }, + keys = { + { prefix .. "T", "TransparentToggle", desc = "Toggle transparency" }, + }, +}