diff --git a/lazy-lock.json b/lazy-lock.json index a01b159..b4b95d3 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -10,7 +10,6 @@ "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, "code_runner.nvim": { "branch": "main", "commit": "d135c4178bf8980ca5fa4aa6e27ab9ee4373c875" }, "codeium.vim": { "branch": "main", "commit": "289eb724e5d6fab2263e94a1ad6e54afebefafb2" }, - "dracula.nvim": { "branch": "main", "commit": "8d8bddb8814c3e7e62d80dda65a9876f97eb699c" }, "dressing.nvim": { "branch": "master", "commit": "572314728cb1ce012e825fd66331f52c94acac12" }, "friendly-snippets": { "branch": "main", "commit": "dd2fd1281d4b22e7b4a5bfafa3e142d958e251f2" }, "gitsigns.nvim": { "branch": "main", "commit": "76927d14d3fbd4ba06ccb5246e79d93b5442c188" }, @@ -26,7 +25,7 @@ "neoscroll.nvim": { "branch": "master", "commit": "e78657719485c5663b88e5d96ffcfb6a2fe3eec0" }, "noice.nvim": { "branch": "main", "commit": "278578720a62787aa5893043f2007792a685a443" }, "none-ls-extras.nvim": { "branch": "main", "commit": "336e84b9e43c0effb735b08798ffac382920053b" }, - "none-ls.nvim": { "branch": "main", "commit": "aa4442a8493934e3354e507a556ea5f670f68491" }, + "none-ls.nvim": { "branch": "main", "commit": "60f5f80686f5a272ed3281a7d4962cb54dc5348e" }, "nui.nvim": { "branch": "main", "commit": "a0fd35fcbb4cb479366f1dc5f20145fd718a3733" }, "nvim-autopairs": { "branch": "master", "commit": "c15de7e7981f1111642e7e53799e1211d4606cb9" }, "nvim-cmp": { "branch": "main", "commit": "5260e5e8ecadaf13e6b82cf867a909f54e15fd07" }, @@ -37,12 +36,13 @@ "nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" }, "nvim-scrollview": { "branch": "main", "commit": "c29c5f69d37040a1fac88cbea7f5e6f06f0aff4d" }, "nvim-tree.lua": { "branch": "master", "commit": "2bc725a3ebc23f0172fb0ab4d1134b81bcc13812" }, - "nvim-treesitter": { "branch": "master", "commit": "298a9dd4f8a0d95b347a7ebd301849d8b0e3917e" }, + "nvim-treesitter": { "branch": "master", "commit": "6d56c5f404d3b116bab167bc03993cfb0a83f8aa" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "3557e41418b4a6c5b85d5d64abe94c9c50fa9b14" }, "nvim-ts-autotag": { "branch": "main", "commit": "8ae54b90e36ef1fc5267214b30c2cbff71525fe4" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "cb064386e667def1d241317deed9fd1b38f0dc2e" }, "nvim-ufo": { "branch": "main", "commit": "a5390706f510d39951dd581f6d2a972741b3fa26" }, "nvim-web-devicons": { "branch": "master", "commit": "5b9067899ee6a2538891573500e8fd6ff008440f" }, + "onedarkpro.nvim": { "branch": "main", "commit": "ec07364f3cfa9cc6467bf067a490cfd74011efcd" }, "plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" }, "promise-async": { "branch": "main", "commit": "38a4575da9497326badd3995e768b4ccf0bb153e" }, "rainbow-delimiters.nvim": { "branch": "master", "commit": "12b1a1e095d968887a17ef791c2edb78d7595d46" }, diff --git a/lua/custom/default.lua b/lua/custom/default.lua index 589b911..ddec56a 100644 --- a/lua/custom/default.lua +++ b/lua/custom/default.lua @@ -11,7 +11,7 @@ -- catppuccin, catppuccin-latte, catppuccin-frappe, catppuccin-macchiato, catppuccin-mocha -- dracula -- nightfox, dayfox, dawnfox, duskfox, nordfox, terafox, carbonfox -vim.g.pcode_colorscheme = "dracula" +vim.g.pcode_colorscheme = "onedark" -- custom transparent mode -- only support diff --git a/lua/plugins/bufferline.lua b/lua/plugins/bufferline.lua index 8f225c6..87fe90d 100644 --- a/lua/plugins/bufferline.lua +++ b/lua/plugins/bufferline.lua @@ -92,6 +92,10 @@ return { always_show_bufferline = true, }, highlights = { + fill = { + fg = { attribute = "fg", highlight = "TabLine" }, + bg = { attribute = "none", highlight = "TabLine" }, + }, background = { fg = { attribute = "fg", highlight = "TabLine" }, bg = { attribute = "none", highlight = "TabLine" }, diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua index 5e710e2..a20a349 100644 --- a/lua/plugins/colorscheme.lua +++ b/lua/plugins/colorscheme.lua @@ -14,525 +14,749 @@ local material_style = "oceanic" local onedark_style = "dark" _G.switch = function(param, case_table) - local case = case_table[param] - if case then - return case() - end - local def = case_table["default"] - return def and def() or nil + local case = case_table[param] + if case then + return case() + end + local def = case_table["default"] + return def and def() or nil end local color = vim.g.pcode_colorscheme or "gruvbox-baby" switch(color, { - ["tokyonight"] = function() - gruvbox = false - tokyonight = true - end, - ["tokyonight-night"] = function() - gruvbox = false - tokyonight = true - end, - ["tokyonight-storm"] = function() - gruvbox = false - tokyonight = true - end, - ["tokyonight-day"] = function() - gruvbox = false - tokyonight = true - end, - ["tokyonight-moon"] = function() - gruvbox = false - tokyonight = true - end, - ["sonokai"] = function() - gruvbox = false - sonokai = true - sonokai_style = "default" - end, - ["sonokai_atlantis"] = function() - gruvbox = false - sonokai = true - sonokai_style = "atlantis" - end, - ["sonokai_andromeda"] = function() - gruvbox = false - sonokai = true - sonokai_style = "andromeda" - end, - ["sonokai_shusia"] = function() - gruvbox = false - sonokai = true - sonokai_style = "shusia" - end, - ["sonokai_maia"] = function() - gruvbox = false - sonokai = true - sonokai_style = "maia" - end, - ["sonokai_espresso"] = function() - gruvbox = false - sonokai = true - sonokai_style = "espresso" - end, - ["material"] = function() - gruvbox = false - material = true - end, - ["material_deepocean"] = function() - gruvbox = false - material = true - material_style = "deep ocean" - end, - ["material_palenight"] = function() - gruvbox = false - material = true - material_style = "palenight" - end, - ["material_lighter"] = function() - gruvbox = false - material = true - material_style = "lighter" - end, - ["material_darker"] = function() - gruvbox = false - material = true - material_style = "darker" - end, - ["onedark"] = function() - gruvbox = false - onedark = true - end, - ["onedark_darker"] = function() - gruvbox = false - onedark = true - onedark_style = "darker" - end, - ["onedark_cool"] = function() - gruvbox = false - onedark = true - onedark_style = "cool" - end, - ["onedark_deep"] = function() - gruvbox = false - onedark = true - onedark_style = "deep" - end, - ["onedark_warm"] = function() - gruvbox = false - onedark = true - onedark_style = "warm" - end, - ["onedark_warmer"] = function() - gruvbox = false - onedark = true - onedark_style = "warmer" - end, - ["onedark_light"] = function() - gruvbox = false - onedark = true - onedark_style = "light" - end, - ["lunar"] = function() - gruvbox = false - lunar = true - end, - ["nord"] = function() - gruvbox = false - nord = true - end, - ["catppuccin"] = function() - gruvbox = false - catppuccin = true - end, - ["catppuccin-latte"] = function() - gruvbox = false - catppuccin = true - end, - ["catppuccin-frappe"] = function() - gruvbox = false - catppuccin = true - end, - ["catppuccin-macchiato"] = function() - gruvbox = false - catppuccin = true - end, - ["catppuccin-mocha"] = function() - gruvbox = false - catppuccin = true - end, - ["dracula"] = function() - gruvbox = false - dracula = true - end, - ["nightfox"] = function() - gruvbox = false - nightfox = true - end, - ["dayfox"] = function() - gruvbox = false - nightfox = true - end, - ["dawnfox"] = function() - gruvbox = false - nightfox = true - end, - ["duskfox"] = function() - gruvbox = false - nightfox = true - end, - ["nordfox"] = function() - gruvbox = false - nightfox = true - end, - ["terafox"] = function() - gruvbox = false - nightfox = true - end, - ["carbonfox"] = function() - gruvbox = false - nightfox = true - end, - ["gruvbox-baby"] = function() - gruvbox = true - end, - default = function() - gruvbox = true - end, + ["tokyonight"] = function() + gruvbox = false + tokyonight = true + end, + ["tokyonight-night"] = function() + gruvbox = false + tokyonight = true + end, + ["tokyonight-storm"] = function() + gruvbox = false + tokyonight = true + end, + ["tokyonight-day"] = function() + gruvbox = false + tokyonight = true + end, + ["tokyonight-moon"] = function() + gruvbox = false + tokyonight = true + end, + ["sonokai"] = function() + gruvbox = false + sonokai = true + sonokai_style = "default" + end, + ["sonokai_atlantis"] = function() + gruvbox = false + sonokai = true + sonokai_style = "atlantis" + end, + ["sonokai_andromeda"] = function() + gruvbox = false + sonokai = true + sonokai_style = "andromeda" + end, + ["sonokai_shusia"] = function() + gruvbox = false + sonokai = true + sonokai_style = "shusia" + end, + ["sonokai_maia"] = function() + gruvbox = false + sonokai = true + sonokai_style = "maia" + end, + ["sonokai_espresso"] = function() + gruvbox = false + sonokai = true + sonokai_style = "espresso" + end, + ["material"] = function() + gruvbox = false + material = true + end, + ["material_deepocean"] = function() + gruvbox = false + material = true + material_style = "deep ocean" + end, + ["material_palenight"] = function() + gruvbox = false + material = true + material_style = "palenight" + end, + ["material_lighter"] = function() + gruvbox = false + material = true + material_style = "lighter" + end, + ["material_darker"] = function() + gruvbox = false + material = true + material_style = "darker" + end, + ["onedark"] = function() + gruvbox = false + onedark = true + end, + ["onedark_darker"] = function() + gruvbox = false + onedark = true + onedark_style = "darker" + end, + ["onedark_cool"] = function() + gruvbox = false + onedark = true + onedark_style = "cool" + end, + ["onedark_deep"] = function() + gruvbox = false + onedark = true + onedark_style = "deep" + end, + ["onedark_warm"] = function() + gruvbox = false + onedark = true + onedark_style = "warm" + end, + ["onedark_warmer"] = function() + gruvbox = false + onedark = true + onedark_style = "warmer" + end, + ["onedark_light"] = function() + gruvbox = false + onedark = true + onedark_style = "light" + end, + ["lunar"] = function() + gruvbox = false + lunar = true + end, + ["nord"] = function() + gruvbox = false + nord = true + end, + ["catppuccin"] = function() + gruvbox = false + catppuccin = true + end, + ["catppuccin-latte"] = function() + gruvbox = false + catppuccin = true + end, + ["catppuccin-frappe"] = function() + gruvbox = false + catppuccin = true + end, + ["catppuccin-macchiato"] = function() + gruvbox = false + catppuccin = true + end, + ["catppuccin-mocha"] = function() + gruvbox = false + catppuccin = true + end, + ["dracula"] = function() + gruvbox = false + dracula = true + end, + ["nightfox"] = function() + gruvbox = false + nightfox = true + end, + ["dayfox"] = function() + gruvbox = false + nightfox = true + end, + ["dawnfox"] = function() + gruvbox = false + nightfox = true + end, + ["duskfox"] = function() + gruvbox = false + nightfox = true + end, + ["nordfox"] = function() + gruvbox = false + nightfox = true + end, + ["terafox"] = function() + gruvbox = false + nightfox = true + end, + ["carbonfox"] = function() + gruvbox = false + nightfox = true + end, + ["gruvbox-baby"] = function() + gruvbox = true + end, + default = function() + gruvbox = true + end, }) local transparent = false local transparent_mode = vim.g.pcode_transparent_mode or 0 if transparent_mode ~= nil then - if transparent_mode == 1 then - transparent = true - end + if transparent_mode == 1 then + transparent = true + end end return { - -- color scheme - { - "luisiacc/gruvbox-baby", - lazy = true, - enabled = gruvbox, - config = function() - local colors = require("gruvbox-baby.colors").config() - vim.g.gruvbox_baby_highlights = { - StatusLine = { fg = colors.fg, bg = "NONE" }, - } - end, - }, - { - "Mofiqul/dracula.nvim", - enabled = dracula, - config = function() - local is_transparent = false - local colors = require("dracula").colors() - if is_transparent then - colors = { - bg = "none", - } - end - require("dracula").setup({ - colors = { - -- purple = "#FCC76A", - menu = colors.bg, - }, - italic_comment = true, - lualine_bg_color = colors.bg, - overrides = { - Keywords = { fg = colors.cyan, italic = true }, - -- Function = { fg = colors.yellow, italic = true }, - ["@keyword"] = { fg = colors.pink, italic = true }, - ["@keyword.function"] = { fg = colors.cyan, italic = true }, - ["@function"] = { fg = colors.green, italic = true }, - ["@tag.javascript"] = { fg = colors.cyan }, - ["@tag.attribute"] = { fg = colors.green, italic = true }, - -- ["@tag.attribute.javascript"] = { fg = colors.orange, italic = true }, - NvimTreeFolderIcon = { fg = "#6776a7" }, - CmpItemAbbr = { fg = "#ABB2BF" }, - CmpItemKind = { fg = "#ABB2BF" }, - CmpItemAbbrDeprecated = { fg = "#ABB2BF" }, - CmpItemAbbrMatch = { fg = "#8BE9FD" }, - htmlLink = { fg = "#BD93F9", underline = false }, - Underlined = { fg = "#8BE9FD" }, - NvimTreeSpecialFile = { fg = "#FF79C6" }, - SpellBad = { fg = "#FF6E6E" }, - illuminatedWord = { bg = "#3b4261" }, - illuminatedCurWord = { bg = "#3b4261" }, - IlluminatedWordText = { bg = "#3b4261" }, - IlluminatedWordRead = { bg = "#3b4261" }, - IlluminatedWordWrite = { bg = "#3b4261" }, - DiffChange = { fg = colors.fg }, - StatusLine = { fg = colors.fg, bg = colors.bg }, - StatusLineTerm = { fg = colors.fg, bg = colors.bg }, - BufferLineFill = { bg = colors.bg }, - Pmenu = { fg = colors.fg, bg = colors.bg }, - WinBarNC = { fg = colors.fg, bg = colors.bg }, - LspInfoBorder = { fg = colors.fg }, - }, - transparent_bg = transparent, - -- transparent_bg = is_transparent, - }) - end, - }, - { - "folke/tokyonight.nvim", - enabled = tokyonight, - config = function() - require("user.tokyonight") - end, - }, - { - "shaunsingh/nord.nvim", - enabled = nord, - config = function() - vim.g.nord_disable_background = transparent - require("nord").set() - end, - }, - { - "sainnhe/sonokai", - enabled = sonokai, - config = function() - vim.g.sonokai_style = sonokai_style - end, - }, - { "lunarvim/lunar.nvim", enabled = lunar }, - { - "marko-cerovac/material.nvim", - enabled = material, - config = function() - local colors = require("material.colors") - vim.g.material_style = material_style - require("material").setup({ - lualine_style = "stealth", - disable = { - background = transparent, - }, - plugins = { -- Uncomment the plugins that you use to highlight them - -- Available plugins: - "dap", - -- "dashboard", - -- "eyeliner", - "fidget", - -- "flash", - "gitsigns", - -- "harpoon", - -- "hop", - "illuminate", - "indent-blankline", - -- "lspsaga", - "mini", - -- "neogit", - -- "neotest", - -- "neo-tree", - -- "neorg", - "noice", - "nvim-cmp", - "nvim-navic", - "nvim-tree", - "nvim-web-devicons", - "rainbow-delimiters", - -- "sneak", - "telescope", - -- "trouble", - "which-key", - "nvim-notify", - }, - custom_highlights = { - BufferLineFill = { bg = colors.bg }, - StatusLine = { fg = "#f8f8f2", bg = colors.bg }, - StatusLineTerm = { fg = "#f8f8f2", bg = colors.bg }, - WinBarNC = { fg = colors.fg, bg = colors.bg }, - }, - }) - end, - }, - { - "navarasu/onedark.nvim", - enabled = onedark, - priority = 1000, - config = function() - -- Lua - local util = require("onedark.util") - require("onedark").setup({ - term_colors = true, - style = onedark_style, - colors = { - bg0 = "#1e222a", - green = "#98c379", - gray = "#abb2bf", - red = "#e06c75", - purple = "#c678dd", - yellow = "#e5c07b", - orange = "#d19a66", - blue = "#61afef", - cyan = "#56b6c2", - bg_d = "$bg", - bg1 = "#1e222a", - }, - code_style = { - comments = "italic", - keywords = "italic", - functions = "none", - strings = "none", - variables = "none", - }, - highlights = { - NoiceCursor = { fg = "$bg0", bg = "$fg" }, - Search = { fg = "$bg0", bg = "$bg_yellow" }, - -- BorderBG = { fg = "#333842" }, -- untuk custom brder color cmp - -- overide indent line fill color - NvimTreeNormal = { fg = "$fg", bg = "$bg0" }, - NvimTreeIndentMarker = { fg = "#515661" }, - -- NvimTreeGitIgnored = { fg = "$gray", bg = "NONE" }, - IblIndent = { fg = "#3E4450" }, - -- NvimTreeFolderIcon = { bg = "NONE", fg = "$blue" }, - ["@markup.link.url"] = { fg = "$cyan", fmt = "italic" }, - ["@text.uri"] = { fg = "$cyan", fmt = "none" }, - ["@tag.delimiter"] = { fg = "$gray" }, - ["@tag.html"] = { fg = "$red" }, - ["@tag.attribute"] = { fg = "$orange", fmt = "italic" }, - ["@tag.javascript"] = { fg = "$red" }, - ["@constructor.javascript"] = { fg = "$red" }, - ["@tag.tsx"] = { fg = "$yellow" }, - ["@constructor.tsx"] = { fg = "$yellow" }, - -- NvimTreeFolderIcon = { fg = "#FCC76A" }, - NvimTreeSpecialFile = { fg = "$yellow", fmt = "italic" }, - BufferLineFill = { bg = "$bg0" }, - BufferLineUnfocusedFill = { bg = "$bg0" }, - StatusLine = { fg = "#f8f8f2", bg = "$bg0" }, - StatusLineTerm = { fg = "#f8f8f2", bg = "$bg0" }, - illuminatedWord = { bg = "#3b4261" }, - illuminatedCurWord = { bg = "#3b4261" }, - IlluminatedWordText = { bg = "#3b4261" }, - IlluminatedWordRead = { bg = "#3b4261" }, - IlluminatedWordWrite = { bg = "#3b4261" }, - PmenuSel = { fg = "$fg", bg = "#333842" }, - -- overide lualine fill color with bg color - LualineNormal = { bg = "$bg0" }, - -- overide lualine_c fill color with bg color - LualineC = { bg = "$bg0" }, - -- overide lualine_x fill color with bg color - LualineX = { bg = "$bg0" }, - -- overide which-key fill color with bg color - WhichKey = { bg = "$bg0" }, - -- overide which-key fill color with bg color - WhichKeySeperator = { bg = "$bg0" }, - -- overide which-key fill color with bg color - WhichKeyDesc = { bg = "$bg0" }, - -- overide which-key fill color with bg color - WhichKeyFloat = { bg = "$bg0" }, - -- overide which-key fill color with bg color - WhichKeyValue = { bg = "$bg0" }, - -- overide which-key fill color with bg color - WhichKeyBorder = { bg = "$bg0" }, - -- overide Lazy fill color with bg color - -- LazyNormal = { bg = "$bg0" }, - -- -- overide lazy background color with bg color - -- LazyBackground = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazyH1 = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazyH2 = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazyH3 = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazyH4 = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazyH5 = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazyH6 = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazyButton = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazyButtonActive = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazySpecial = { bg = "$bg0" }, - -- -- overide Lazy fill color with bg color - -- LazyProgress = { bg = "$bg0" }, - -- Pmenu = { fg = "$fg", bg = "$bg0" }, - CursorLine = { bg = "#333842" }, - Cursor = { fg = "$bg0", bg = "$fg" }, -- character under the cursor - lCursor = { fg = "$bg0", bg = "$fg" }, -- the character under the cursor when |language-mapping| is used (see 'guicursor') - CursorIM = { fg = "$bg0", bg = "$fg" }, -- like Cursor, but used when in IME mode |CursorIM| - CursorColumn = { bg = "#333842" }, -- Screen-column at the cursor, when 'cursorcolumn' is set. - -- Visual = { bg = "$orange" }, - DiffText = { bg = "$orange" }, - DiffAdd = { bg = "#595d65" }, - MiniIndentscopeSymbol = { fg = "$cyan", nocombine = true }, - -- UfoPreviewNormal = { fg = "#373d48", bg = "$bg0" }, - -- UfoPreviewBorder = { fg = "#373d48", bg = "$bg0" }, - -- UfoPreviewCursorLine = { fg = "#373d48", bg = "$bg0" }, - WinBarNC = { fg = "$fg", bg = "NONE" }, - }, - transparent = transparent, - lualine = { - transparent = true, - }, - }) - require("onedark").load() - end, - }, - { - "catppuccin/nvim", - enabled = catppuccin, - name = "catppuccin", - init = function() - require("user.catppuccin") - end, - }, - { - "EdenEast/nightfox.nvim", - enabled = nightfox, - config = function() - local palette = require("nightfox.palette").load("nightfox") - local Color = require("nightfox.lib.color") - local bg = Color.from_hex(palette.bg1) - require("nightfox").setup({ - options = { - terminal_colors = true, - transparent = transparent, - styles = { -- Style to be applied to different syntax groups - comments = "italic", -- Value is any valid attr-list value `:help attr-list` - conditionals = "italic", - constants = "NONE", - functions = "NONE", - keywords = "italic", - numbers = "NONE", - operators = "NONE", - strings = "NONE", - types = "NONE", - variables = "NONE", - }, - }, - palettes = { - all = { - bg0 = palette.bg1, - bg = palette.bg1, - }, - }, - specs = {}, - groups = { - all = { - -- overide bufferline fill color - BufferLineFill = { bg = palette.bg1 }, - BufferLineUnfocusedFill = { bg = palette.bg }, - -- overide nvimtree fill color with bg color - NvimTreeNormal = { bg = palette.bg }, - NvimTreeWinSeparator = { - fg = palette.bg0, - }, - Underlined = { style = "NONE" }, -- overide statusline fill color with bg color - StatusLine = { bg = "NONE" }, - StatusLineTerm = { bg = palette.bg }, - -- overide lualine fill color with bg color - LualineNormal = { bg = palette.bg }, - Pmenu = { bg = "bg3" }, - PmenuSel = { bg = "bg3" }, - }, - }, - }) - end, - }, + -- color scheme + { + "luisiacc/gruvbox-baby", + lazy = true, + enabled = gruvbox, + config = function() + local colors = require("gruvbox-baby.colors").config() + vim.g.gruvbox_baby_highlights = { + StatusLine = { fg = colors.fg, bg = colors.bg }, + WinBarNC = { fg = colors.fg, bg = colors.bg }, + BufferLineFill = { bg = colors.bg }, + BufferLineFillNC = { bg = colors.bg }, + BufferLineUnfocusedFill = { bg = colors.bg }, + TabLine = { bg = colors.bg, fg = colors.fg }, + } + end, + }, + { + "Mofiqul/dracula.nvim", + enabled = dracula, + config = function() + local is_transparent = false + local colors = require("dracula").colors() + if is_transparent then + colors = { + bg = "none", + } + end + require("dracula").setup { + colors = { + -- purple = "#FCC76A", + menu = colors.bg, + }, + italic_comment = true, + lualine_bg_color = colors.bg, + overrides = { + Keywords = { fg = colors.cyan, italic = true }, + -- Function = { fg = colors.yellow, italic = true }, + ["@keyword"] = { fg = colors.pink, italic = true }, + ["@keyword.function"] = { fg = colors.cyan, italic = true }, + ["@function"] = { fg = colors.green, italic = true }, + ["@tag.javascript"] = { fg = colors.cyan }, + ["@tag.attribute"] = { fg = colors.green, italic = true }, + -- ["@tag.attribute.javascript"] = { fg = colors.orange, italic = true }, + NvimTreeFolderIcon = { fg = "#6776a7" }, + CmpItemAbbr = { fg = "#ABB2BF" }, + CmpItemKind = { fg = "#ABB2BF" }, + CmpItemAbbrDeprecated = { fg = "#ABB2BF" }, + CmpItemAbbrMatch = { fg = "#8BE9FD" }, + htmlLink = { fg = "#BD93F9", underline = false }, + Underlined = { fg = "#8BE9FD" }, + NvimTreeSpecialFile = { fg = "#FF79C6" }, + SpellBad = { fg = "#FF6E6E" }, + illuminatedWord = { bg = "#3b4261" }, + illuminatedCurWord = { bg = "#3b4261" }, + IlluminatedWordText = { bg = "#3b4261" }, + IlluminatedWordRead = { bg = "#3b4261" }, + IlluminatedWordWrite = { bg = "#3b4261" }, + DiffChange = { fg = colors.fg }, + StatusLine = { fg = colors.fg, bg = colors.bg }, + StatusLineTerm = { fg = colors.fg, bg = colors.bg }, + BufferLineFill = { bg = colors.bg }, + Pmenu = { fg = colors.fg, bg = colors.bg }, + WinBarNC = { fg = colors.fg, bg = colors.bg }, + LspInfoBorder = { fg = colors.fg }, + }, + transparent_bg = transparent, + -- transparent_bg = is_transparent, + } + end, + }, + { + "folke/tokyonight.nvim", + enabled = tokyonight, + config = function() + require "user.tokyonight" + end, + }, + { + "shaunsingh/nord.nvim", + enabled = nord, + config = function() + vim.g.nord_disable_background = transparent + require("nord").set() + local nord = require "nord.colors" + vim.api.nvim_create_autocmd("ColorScheme", { + pattern = "*", + callback = function() + vim.api.nvim_set_hl(0, "StatusLine", { bg = "NONE", fg = nord.nord4_gui }) + vim.api.nvim_set_hl(0, "WinBarNC", { bg = nord.nord0_gui, fg = nord.nord4_gui }) + vim.api.nvim_set_hl(0, "WhichKeyFloat", { bg = nord.nord0_gui, fg = nord.nord4_gui }) + -- vim.api.nvim_set_hl(0, "StatusLine", { cterm = "bold", bold = true }) + end, + }) + end, + }, + { + "sainnhe/sonokai", + enabled = sonokai, + config = function() + vim.api.nvim_create_autocmd("ColorScheme", { + group = vim.api.nvim_create_augroup("custom_highlights_sonokai", {}), + pattern = "sonokai", + callback = function() + local config = vim.fn["sonokai#get_configuration"]() + local palette = vim.fn["sonokai#get_palette"](config.style, config.colors_override) + local set_hl = vim.fn["sonokai#highlight"] + + set_hl("StatusLine", palette.fg, palette.none) + set_hl("StatusLineTerm", palette.fg, palette.none) + set_hl("StatusLineNC", palette.fg, palette.none) + set_hl("StatusLineTermNC", palette.fg, palette.none) + set_hl("LualineNormal", palette.fg, palette.none) + set_hl("NvimTreeNormal", palette.fg, palette.bg0) + set_hl("NvimTreeCursorLine", palette.fg, palette.bg1) + set_hl("NvimTreeEndOfBuffer", palette.fg, palette.bg0) + set_hl("Pmenu", palette.fg, palette.bg0) + set_hl("WhichKeyFloat", palette.fg, palette.bg0) + set_hl("WhichKey", palette.fg, palette.bg0) + set_hl("WhichKeyBorder", palette.fg, palette.bg0) + set_hl("NormalFloat", palette.fg, palette.bg0) + set_hl("Normal", palette.fg, palette.bg0) + set_hl("NormalNC", palette.fg, palette.bg0) + set_hl("FloatBorder", palette.fg, palette.bg0) + set_hl("LspInfoNormal", palette.fg, palette.bg0) + end, + }) + vim.g.sonokai_style = sonokai_style + vim.g.sonokai_transparent_background = 2 + end, + }, + { "lunarvim/lunar.nvim", enabled = lunar }, + { + "marko-cerovac/material.nvim", + enabled = material, + config = function() + local colors = require "material.colors" + vim.g.material_style = material_style + require("material").setup { + lualine_style = "stealth", + disable = { + background = transparent, + }, + plugins = { -- Uncomment the plugins that you use to highlight them + -- Available plugins: + "dap", + -- "dashboard", + -- "eyeliner", + "fidget", + -- "flash", + "gitsigns", + -- "harpoon", + -- "hop", + "illuminate", + "indent-blankline", + -- "lspsaga", + "mini", + -- "neogit", + -- "neotest", + -- "neo-tree", + -- "neorg", + "noice", + "nvim-cmp", + "nvim-navic", + "nvim-tree", + "nvim-web-devicons", + "rainbow-delimiters", + -- "sneak", + "telescope", + -- "trouble", + "which-key", + "nvim-notify", + }, + custom_highlights = { + BufferLineFill = { bg = colors.bg }, + StatusLine = { fg = "#f8f8f2", bg = colors.bg }, + StatusLineTerm = { fg = "#f8f8f2", bg = colors.bg }, + WinBarNC = { fg = colors.fg, bg = colors.bg }, + }, + } + end, + }, + -- { + -- "navarasu/onedark.nvim", + -- enabled = onedark, + -- priority = 1000, + -- config = function() + -- -- Lua + -- local util = require "onedark.util" + -- require("onedark").setup { + -- term_colors = true, + -- style = onedark_style, + -- colors = { + -- bg0 = "#1e222a", + -- green = "#98c379", + -- gray = "#abb2bf", + -- red = "#e06c75", + -- purple = "#c678dd", + -- yellow = "#e5c07b", + -- orange = "#d19a66", + -- blue = "#61afef", + -- cyan = "#56b6c2", + -- bg_d = "$bg", + -- bg1 = "#1e222a", + -- }, + -- code_style = { + -- comments = "italic", + -- keywords = "italic", + -- functions = "none", + -- strings = "none", + -- variables = "none", + -- }, + -- highlights = { + -- NoiceCursor = { fg = "$bg0", bg = "$fg" }, + -- Search = { fg = "$bg0", bg = "$bg_yellow" }, + -- -- BorderBG = { fg = "#333842" }, -- untuk custom brder color cmp + -- -- overide indent line fill color + -- NvimTreeNormal = { fg = "$fg", bg = "$bg0" }, + -- NvimTreeIndentMarker = { fg = "#515661" }, + -- -- NvimTreeGitIgnored = { fg = "$gray", bg = "NONE" }, + -- IblIndent = { fg = "#3E4450" }, + -- -- NvimTreeFolderIcon = { bg = "NONE", fg = "$blue" }, + -- ["@markup.link.url"] = { fg = "$cyan", fmt = "italic" }, + -- ["@text.uri"] = { fg = "$cyan", fmt = "none" }, + -- ["@tag.delimiter"] = { fg = "$gray" }, + -- ["@tag.html"] = { fg = "$red" }, + -- ["@tag.attribute"] = { fg = "$orange", fmt = "italic" }, + -- ["@tag.javascript"] = { fg = "$red" }, + -- ["@constructor.javascript"] = { fg = "$red" }, + -- ["@tag.tsx"] = { fg = "$yellow" }, + -- ["@constructor.tsx"] = { fg = "$yellow" }, + -- -- NvimTreeFolderIcon = { fg = "#FCC76A" }, + -- NvimTreeSpecialFile = { fg = "$yellow", fmt = "italic" }, + -- BufferLineFill = { bg = "$bg0" }, + -- BufferLineUnfocusedFill = { bg = "$bg0" }, + -- StatusLine = { fg = "#f8f8f2", bg = "$bg0" }, + -- StatusLineTerm = { fg = "#f8f8f2", bg = "$bg0" }, + -- illuminatedWord = { bg = "#3b4261" }, + -- illuminatedCurWord = { bg = "#3b4261" }, + -- IlluminatedWordText = { bg = "#3b4261" }, + -- IlluminatedWordRead = { bg = "#3b4261" }, + -- IlluminatedWordWrite = { bg = "#3b4261" }, + -- PmenuSel = { fg = "$fg", bg = "#333842" }, + -- -- overide lualine fill color with bg color + -- LualineNormal = { bg = "$bg0" }, + -- -- overide lualine_c fill color with bg color + -- LualineC = { bg = "$bg0" }, + -- -- overide lualine_x fill color with bg color + -- LualineX = { bg = "$bg0" }, + -- -- overide which-key fill color with bg color + -- WhichKey = { bg = "$bg0" }, + -- -- overide which-key fill color with bg color + -- WhichKeySeperator = { bg = "$bg0" }, + -- -- overide which-key fill color with bg color + -- WhichKeyDesc = { bg = "$bg0" }, + -- -- overide which-key fill color with bg color + -- WhichKeyFloat = { bg = "$bg0" }, + -- -- overide which-key fill color with bg color + -- WhichKeyValue = { bg = "$bg0" }, + -- -- overide which-key fill color with bg color + -- WhichKeyBorder = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- -- LazyNormal = { bg = "$bg0" }, + -- -- -- overide lazy background color with bg color + -- -- LazyBackground = { bg = "$bg0" }, + -- -- -- overide Lazy fill color with bg color + -- -- LazyH1 = { bg = "$bg0" }, + -- -- -- overide Lazy fill color with bg color + -- -- LazyH2 = { bg = "$bg0" }, + -- -- -- overide Lazy fill color with bg color + -- -- LazyH3 = { bg = "$bg0" }, + -- -- -- overide Lazy fill color with bg color + -- -- LazyH4 = { bg = "$bg0" }, + -- -- -- overide Lazy fill color with bg color + -- -- LazyH5 = { bg = "$bg0" }, + -- -- -- overide Lazy fill color with bg color + -- -- LazyH6 = { bg = "$bg0" }, + -- -- -- overide Lazy fill color with bg color + -- -- LazyButton = { bg = "$bg0" }, + -- -- -- overide Lazy fill color with bg color + -- -- LazyButtonActive = { bg = "$bg0" }, + -- -- -- overide Lazy fill color with bg color + -- -- LazySpecial = { bg = "$bg0" }, + -- -- -- overide Lazy fill color with bg color + -- -- LazyProgress = { bg = "$bg0" }, + -- -- Pmenu = { fg = "$fg", bg = "$bg0" }, + -- CursorLine = { bg = "#333842" }, + -- Cursor = { fg = "$bg0", bg = "$fg" }, -- character under the cursor + -- lCursor = { fg = "$bg0", bg = "$fg" }, -- the character under the cursor when |language-mapping| is used (see 'guicursor') + -- CursorIM = { fg = "$bg0", bg = "$fg" }, -- like Cursor, but used when in IME mode |CursorIM| + -- CursorColumn = { bg = "#333842" }, -- Screen-column at the cursor, when 'cursorcolumn' is set. + -- -- Visual = { bg = "$orange" }, + -- DiffText = { bg = "$orange" }, + -- DiffAdd = { bg = "#595d65" }, + -- MiniIndentscopeSymbol = { fg = "$cyan", nocombine = true }, + -- -- UfoPreviewNormal = { fg = "#373d48", bg = "$bg0" }, + -- -- UfoPreviewBorder = { fg = "#373d48", bg = "$bg0" }, + -- -- UfoPreviewCursorLine = { fg = "#373d48", bg = "$bg0" }, + -- WinBarNC = { fg = "$fg", bg = "NONE" }, + -- }, + -- transparent = transparent, + -- lualine = { + -- transparent = true, + -- }, + -- } + -- require("onedark").load() + -- end, + -- }, + { + "olimorris/onedarkpro.nvim", + priority = 1000, -- Ensure it loads first + enabled = onedark, + config = function() + local is_transparent = false + require("onedarkpro").setup { + styles = { + types = "NONE", + methods = "NONE", + numbers = "NONE", + strings = "NONE", + comments = "italic", + keywords = "bold,italic", + constants = "NONE", + functions = "italic", + operators = "NONE", + variables = "NONE", + parameters = "NONE", + conditionals = "italic", + virtual_text = "NONE", + tags = "italic", + }, + colors = { + onedark = { + green = "#99c379", + gray = "#8094b4", + red = "#e06c75", + purple = "#c678dd", + yellow = "#e5c07a", + blue = "#61afef", + cyan = "#56b6c2", + bg_statusline = "#282c34", + indentline = "#3b4261", + float_bg = "#282c34", + }, + }, + options = { + cursorline = true, + transparency = is_transparent, + terminal_colors = true, + }, + highlights = { + -- overide cursor line fill colors + LineNr = { fg = "#49505E" }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set. + CursorLineNr = { fg = "${blue}" }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line. + CursorLine = { bg = "#333842" }, + Cursor = { fg = "${bg}", bg = "${fg}" }, -- character under the cursor + lCursor = { fg = "${bg}", bg = "${fg}" }, -- the character under the cursor when |language-mapping| is used (see 'guicursor') + CursorIM = { fg = "${bg}", bg = "${fg}" }, -- like Cursor, but used when in IME mode |CursorIM| + CursorColumn = { bg = "#333842" }, -- Screen-column at the cursor, when 'cursorcolumn' is set. + -- overide nvimtree folder icon fill color + NvimTreeFolderIcon = { fg = "${gray}" }, + -- overide nvimtree text fill color folder opened + NvimTreeOpenedFolderName = { fg = "${blue}" }, + -- overide nvimtree text fill color root folder + NvimTreeRootFolder = { fg = "${yellow}" }, + NvimTreeSpecialFile = { fg = "${orange}" }, + NvimTreeWinSeparator = { fg = "#202329" }, + NvimTreeIndentMarker = { fg = "#3E4450" }, + -- overide indenline fill color + IblIndent = { fg = "#3E4450" }, + -- overide cmp cursorline fill color with #333842 + PmenuSel = { bg = "#333842" }, + illuminatedWord = { bg = "#3b4261" }, + illuminatedCurWord = { bg = "#3b4261" }, + IlluminatedWordText = { bg = "#3b4261" }, + IlluminatedWordRead = { bg = "#3b4261" }, + IlluminatedWordWrite = { bg = "#3b4261" }, + StatusLine = { fg = "#f8f8f2", bg = is_transparent and "NONE" or "${bg}" }, + StatusLineTerm = { fg = "#f8f8f2", bg = "${bg}" }, + BufferLineFill = { bg = is_transparent and "NONE" or "${bg}" }, + ["@string.special.url.html"] = { fg = "${green}" }, + ["@lsp.type.parameter"] = { fg = "${gray}" }, + -- ["@text.uri.html"] = { fg = "${green}" }, + -- ["@tag.javascript"] = { fg = "${red}" }, + -- ["@tag.attribute"] = { fg = "${orange}", style = "italic" }, + -- ["@constructor.javascript"] = { fg = "${red}" }, + -- ["@variable"] = { fg = "${fg}", style = "NONE" }, -- various variable names + -- ["@variable.builtin"] = { fg = "${red}", style = "NONE" }, + -- ["@variable.member"] = "${cyan}", + -- ["@variable.parameter"] = "${red}", + -- ["@property"] = { fg = "${cyan}" }, -- similar to `@field` + ["@property.lua"] = { fg = "${red}", bg = "NONE" }, + ["@lsp.type.property.lua"] = { fg = "${cyan}", bg = "NONE" }, + ["@lsp.type.variable.lua"] = { fg = "${red}", bg = "NONE" }, + NvimTreeGitDirty = { fg = "${yellow}" }, + Pmenu = { fg = "${fg}", bg = "${bg}" }, + PmenuThumb = { bg = "${gray}" }, -- Popup menu: Thumb of the scrollbar. + -- overide lualine fill color with bg color + LualineNormal = { bg = "${bg}" }, + -- overide lualine_c fill color with bg color + LualineC = { bg = "${bg}" }, + -- overide lualine_x fill color with bg color + LualineX = { bg = "${bg}" }, + -- overide which-key fill color with bg color + -- WhichKey = { bg = "${bg}" }, + -- -- overide which-key fill color with bg color + -- WhichKeySeperator = { bg = "${bg}" }, + -- -- overide which-key fill color with bg color + -- WhichKeyDesc = { fg = "${red}" }, + -- -- overide which-key fill color with bg color + -- WhichKeyFloat = { bg = "${bg}" }, + WhichKeyFloat = { bg = is_transparent and "NONE" or "${bg}" }, + -- -- overide which-key fill color with bg color + -- WhichKeyValue = { bg = "${bg}" }, + -- -- overide which-key fill color with bg color + -- WhichKeyBorder = { bg = "${bg}" }, + LspInfoBorder = { fg = "${fg}" }, + }, + } + end, + }, + { + "catppuccin/nvim", + enabled = catppuccin, + name = "catppuccin", + priority = 1000, + config = function() + require("catppuccin").setup { + flavour = "auto", -- latte, frappe, macchiato, mocha + background = { -- :h background + light = "latte", + dark = "mocha", + }, + transparent_background = transparent, -- disables setting the background color. + show_end_of_buffer = false, -- shows the '~' characters after the end of buffers + term_colors = false, -- sets terminal colors (e.g. `g:terminal_color_0`) + dim_inactive = { + enabled = false, -- dims the background color of inactive window + shade = "dark", + percentage = 0.15, -- percentage of the shade to apply to the inactive window + }, + no_italic = false, -- Force no italic + no_bold = false, -- Force no bold + no_underline = false, -- Force no underline + styles = { -- Handles the styles of general hi groups (see `:h highlight-args`): + comments = { "italic" }, -- Change the style of comments + conditionals = { "italic" }, + loops = {}, + functions = {}, + keywords = { "italic" }, + strings = {}, + variables = {}, + numbers = {}, + booleans = {}, + properties = {}, + types = {}, + operators = {}, + -- miscs = {}, -- Uncomment to turn off hard-coded styles + }, + color_overrides = {}, + custom_highlights = function(colors) + return { + NvimTreeNormal = { fg = colors.text, bg = transparent and colors.none or colors.base }, + NvimTreeWinSeparator = { fg = colors.mantle, bg = transparent and colors.none or colors.none }, + Pmenu = { fg = colors.text, bg = transparent and colors.none or colors.base }, + WhichKeyFloat = { fg = colors.text, bg = transparent and colors.none or colors.base }, + WhichKey = { fg = colors.text, bg = transparent and colors.none or colors.base }, + WhichKeyBorder = { fg = colors.text, bg = transparent and colors.none or colors.base }, + NormalFloat = { fg = colors.text, bg = transparent and colors.none or colors.base }, + Normal = { fg = colors.text, bg = transparent and colors.none or colors.base }, + NormalNC = { fg = colors.text, bg = transparent and colors.none or colors.base }, + StatusLine = { fg = colors.text, bg = colors.none }, + } + end, + highlight_overrides = { + all = function(colors) + return { + ["@markup.link.url"] = { fg = colors.rosewater, style = { "italic" } }, + } + end, + }, + default_integrations = true, + integrations = { + cmp = true, + gitsigns = true, + nvimtree = true, + treesitter = true, + notify = false, + mini = { + enabled = true, + indentscope_color = "", + }, + -- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations) + }, + } + end, + }, + { + "EdenEast/nightfox.nvim", + enabled = nightfox, + config = function() + local palette = require("nightfox.palette").load "nightfox" + local Color = require "nightfox.lib.color" + local bg = Color.from_hex(palette.bg1) + require("nightfox").setup { + options = { + terminal_colors = true, + transparent = transparent, + styles = { -- Style to be applied to different syntax groups + comments = "italic", -- Value is any valid attr-list value `:help attr-list` + conditionals = "italic", + constants = "NONE", + functions = "NONE", + keywords = "italic", + numbers = "NONE", + operators = "NONE", + strings = "NONE", + types = "NONE", + variables = "NONE", + }, + }, + palettes = { + all = { + bg0 = palette.bg1, + bg = palette.bg1, + }, + }, + specs = {}, + groups = { + all = { + -- overide bufferline fill color + BufferLineFill = { bg = palette.bg1 }, + BufferLineUnfocusedFill = { bg = palette.bg }, + -- overide nvimtree fill color with bg color + NvimTreeNormal = { bg = palette.bg }, + NvimTreeWinSeparator = { + fg = palette.bg0, + }, + Underlined = { style = "NONE" }, -- overide statusline fill color with bg color + StatusLine = { bg = "NONE" }, + StatusLineTerm = { bg = palette.bg }, + -- overide lualine fill color with bg color + LualineNormal = { bg = palette.bg }, + Pmenu = { bg = "bg3" }, + PmenuSel = { bg = "bg3" }, + }, + }, + } + end, + }, } diff --git a/lua/plugins/rainbowdelimiter.lua b/lua/plugins/rainbowdelimiter.lua index 069f994..6c0e393 100644 --- a/lua/plugins/rainbowdelimiter.lua +++ b/lua/plugins/rainbowdelimiter.lua @@ -1,36 +1,36 @@ return { - "hiphish/rainbow-delimiters.nvim", - lazy = true, - event = "BufRead", - config = function() - -- Modul ini berisi beberapa definisi default - local rainbow_delimiters = require("rainbow-delimiters") - vim.g.rainbow_delimiters = { - strategy = { - [""] = rainbow_delimiters.strategy["global"], - vim = rainbow_delimiters.strategy["local"], - }, - query = { - [""] = "rainbow-delimiters", - lua = "rainbow-blocks", - }, - priority = { - [""] = 110, - lua = 210, - }, - highlight = { - "RainbowDelimiterRed", - "RainbowDelimiterYellow", - "RainbowDelimiterBlue", - "RainbowDelimiterOrange", - "RainbowDelimiterGreen", - "RainbowDelimiterViolet", - "RainbowDelimiterCyan", - }, - blacklist = { - "html", - "tsx", - }, - } - end, + "hiphish/rainbow-delimiters.nvim", + lazy = true, + event = "BufRead", + config = function() + -- Modul ini berisi beberapa definisi default + local rainbow_delimiters = require "rainbow-delimiters" + vim.g.rainbow_delimiters = { + strategy = { + [""] = rainbow_delimiters.strategy["global"], + vim = rainbow_delimiters.strategy["local"], + }, + query = { + [""] = "rainbow-delimiters", + -- lua = "rainbow-blocks", + }, + priority = { + [""] = 110, + lua = 210, + }, + highlight = { + "RainbowDelimiterRed", + "RainbowDelimiterYellow", + "RainbowDelimiterBlue", + "RainbowDelimiterOrange", + "RainbowDelimiterGreen", + "RainbowDelimiterViolet", + "RainbowDelimiterCyan", + }, + blacklist = { + "html", + "tsx", + }, + } + end, } diff --git a/lua/plugins/transparant.lua b/lua/plugins/transparant.lua index 38f1d1a..c11832e 100644 --- a/lua/plugins/transparant.lua +++ b/lua/plugins/transparant.lua @@ -3,63 +3,63 @@ local clear_lualine = false local transparent_mode = vim.g.pcode_transparent_mode or 0 if transparent_mode ~= nil then - if transparent_mode == 1 then - transparent = true - end + if transparent_mode == 1 then + transparent = true + end end local clear_line = vim.g.pcode_clear_lualine or 0 if clear_line ~= nil then - if clear_line == 1 then - clear_lualine = true - end + if clear_line == 1 then + clear_lualine = true + 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 = {}, - 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") - 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, - }, + -- transparant config + { + "xiyaowong/transparent.nvim", + lazy = true, + enabled = transparent, + event = "BufWinEnter", + cmd = { "TransparentToggle", "TransparentEnable", "TransparentDisable" }, + config = function() + require("transparent").setup { + extra_groups = {}, + 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" + 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, + }, }