adding transparence plugin

This commit is contained in:
cg8936
2025-05-07 13:29:06 -04:00
parent 5c4be23141
commit 327c152c97
3 changed files with 80 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
return {
{
"yetone/avante.nvim",
"CarGDev/avante.nvim",
event = "VeryLazy",
lazy = false,
version = false, -- Always pull the latest change

View File

@@ -92,7 +92,7 @@ return {
},
}
-- Node.js Adapter Configuration for NestJS
-- Node.js Adapter Configuration
dap.adapters.node2 = {
type = "executable",
command = "node",

View File

@@ -0,0 +1,78 @@
return {
"xiyaowong/transparent.nvim",
event = "VeryLazy",
config = function()
require("transparent").setup({
groups = {
"Normal",
"NormalNC",
"Comment",
"Constant",
"Special",
"Identifier",
"Statement",
"PreProc",
"Type",
"Underlined",
"Todo",
"String",
"Function",
"Repeat",
"Operator",
"Structure",
"LineNr",
"NonText",
"SignColumn",
"CursorLine",
"CursorLineNr",
"StatusLine",
"StatusLineNC",
"EndOfBuffer",
},
extra_groups = {
"NormalFloat", -- Floating windows
"NvimTreeNormal", -- NvimTree
"TelescopeNormal", -- Telescope
"WhichKeyFloat", -- WhichKey
"BufferLineFill", -- Bufferline
"BufferLineBackground",
"BufferLineSeparator",
"BufferLineTab",
"BufferLineTabSelected",
"BufferLineTabClose",
"LspInfoBorder", -- LSP info window
"LspSagaHoverBorder",
"LspSagaRenameBorder",
"LspSagaSignatureHelpBorder",
},
exclude_groups = {}, -- Groups you don't want to clear
on_clear = function()
print("💡 Transparent Mode Enabled")
end,
})
-- Clear specific plugin prefixes dynamically
require("transparent").clear_prefix("BufferLine")
require("transparent").clear_prefix("NeoTree")
require("transparent").clear_prefix("lualine")
-- Custom Commands
vim.api.nvim_create_user_command("TransparentEnable", function()
require("transparent").enable()
print("🌟 Transparency Enabled")
end, {})
vim.api.nvim_create_user_command("TransparentDisable", function()
require("transparent").disable()
print("🚫 Transparency Disabled")
end, {})
vim.api.nvim_create_user_command("TransparentToggle", function()
require("transparent").toggle()
print("🔄 Transparency Toggled")
end, {})
-- Global flag for transparency
vim.g.transparent_enabled = true
end,
}