Skip to content

Commit

Permalink
feat: add transparent plugin (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xricksanchez authored May 2, 2023
1 parent 0577100 commit 49e9a39
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/utility/transparent-nvim/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# transparent

**Repository:** <https://github.com/xiyaowong/transparent.nvim>

Remove all background colors to make nvim transparent
42 changes: 42 additions & 0 deletions lua/astrocommunity/utility/transparent-nvim/transparent-nvim.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
local prefix = "<leader>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", "<cmd>TransparentToggle<CR>", desc = "Toggle transparency" },
},
}

0 comments on commit 49e9a39

Please sign in to comment.