add: perapihan plugins

This commit is contained in:
asep.komarudin 2024-06-03 09:03:01 +07:00
parent 130f910923
commit 50fffa04d7
6 changed files with 202 additions and 194 deletions

View file

@ -15,63 +15,67 @@ if clear_line ~= nil then
end
end
return {
-- transparant config
{
"xiyaowong/transparent.nvim",
lazy = true,
enabled = transparent,
event = "BufWinEnter",
cmd = { "TransparentToggle", "TransparentEnable", "TransparentDisable" },
config = function()
require("transparent").setup {
extra_groups = {
"Normal",
"NormalNC",
"NormalFloat",
"FloatBorder",
"Comment",
"Folded",
"GitSignsAdd",
"GitSignsDelete",
"GitSignsChange",
"FoldColumn",
},
exclude_groups = {
-- disable active selection backgroun
"CursorLine",
"CursorLineNR",
"CursorLineSign",
"CursorLineFold",
-- disable nvimtree CursorLine
"NvimTreeCursorLine",
-- disable Neotree CursorLine
"NeoTreeCursorLine",
-- disable Telescope active selection background
"TelescopeSelection",
-- disable lualine background color
"LualineNormal",
},
}
require("transparent").clear_prefix "BufferLine"
-- clear prefix for which-key
require("transparent").clear_prefix "WhichKey"
-- clear prefix for lazy.nvim
require("transparent").clear_prefix "Lazy"
-- clear prefix for NvimTree
require("transparent").clear_prefix "NvimTree"
-- clear prefix for NeoTree
require("transparent").clear_prefix "NeoTree"
-- clear prefix for Telescope
require("transparent").clear_prefix "Telescope"
require("transparent").clear_prefix "mason"
if clear_lualine then
-- clear prefix for Lualine
require("transparent").clear_prefix "Lualine"
-- create auto command to set transparent
vim.cmd "TransparentDisable"
vim.cmd "TransparentEnable"
end
end,
},
}
if transparent then
return {
-- transparant config
{
"xiyaowong/transparent.nvim",
lazy = true,
enabled = transparent,
event = "BufWinEnter",
cmd = { "TransparentToggle", "TransparentEnable", "TransparentDisable" },
config = function()
require("transparent").setup {
extra_groups = {
"Normal",
"NormalNC",
"NormalFloat",
"FloatBorder",
"Comment",
"Folded",
"GitSignsAdd",
"GitSignsDelete",
"GitSignsChange",
"FoldColumn",
},
exclude_groups = {
-- disable active selection backgroun
"CursorLine",
"CursorLineNR",
"CursorLineSign",
"CursorLineFold",
-- disable nvimtree CursorLine
"NvimTreeCursorLine",
-- disable Neotree CursorLine
"NeoTreeCursorLine",
-- disable Telescope active selection background
"TelescopeSelection",
-- disable lualine background color
"LualineNormal",
},
}
require("transparent").clear_prefix "BufferLine"
-- clear prefix for which-key
require("transparent").clear_prefix "WhichKey"
-- clear prefix for lazy.nvim
require("transparent").clear_prefix "Lazy"
-- clear prefix for NvimTree
require("transparent").clear_prefix "NvimTree"
-- clear prefix for NeoTree
require("transparent").clear_prefix "NeoTree"
-- clear prefix for Telescope
require("transparent").clear_prefix "Telescope"
require("transparent").clear_prefix "mason"
if clear_lualine then
-- clear prefix for Lualine
require("transparent").clear_prefix "Lualine"
-- create auto command to set transparent
vim.cmd "TransparentDisable"
vim.cmd "TransparentEnable"
end
end,
},
}
else
return {}
end