Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(utilities): add transparent plugin #180

Merged
merged 4 commits into from
May 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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" },
},
}