diff --git a/6.-Configurations.md b/6.-Configurations.md index b787d5c..48515f7 100644 --- a/6.-Configurations.md +++ b/6.-Configurations.md @@ -582,4 +582,64 @@ vim.api.nvim_set_keymap("", "", "+p", { noremap = true, silent = true } vim.api.nvim_set_keymap("!", "", "+", { noremap = true, silent = true }) vim.api.nvim_set_keymap("t", "", "+", { noremap = true, silent = true }) vim.api.nvim_set_keymap("v", "", "+", { noremap = true, silent = true }) +``` + +# Config Transparant Background +1. Find File lua/custom/default.lua and update config +```lua +vim.g.pcode_transparent_mode = 1 +vim.g.pcode_clear_lualine = 1 +``` +2. Create config plugin transparant +- Create file lua/plugin/transparant.lua +```lua +return { + { + "akinsho/bufferline.nvim", + event = "BufWinEnter", + config = function() + require("user.bufferline") + end, + }, + { + "nvim-lualine/lualine.nvim", + event = "BufWinEnter", + config = function() + require("user.lualine") + end, + }, + -- transparant config + { + "xiyaowong/transparent.nvim", + event = "BufWinEnter", + cmd = { "TransparentToggle", "TransparentEnable", "TransparentDisable" }, + config = function() + 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 Lualine + require("transparent").clear_prefix("Lualine") + require("transparent").setup({ + extra_groups = {}, + exclude_groups = { + -- disable active selection backgroun + "CursorLine", + "CursorLineNR", + "CursorLineSign", + "CursorLineFold", + -- disable nvimtree CursorLine + "NvimTreeCursorLine", + -- disable Neotree CursorLine + "NeoTreeCursorLine", + }, + }) + end, + }, +} ``` \ No newline at end of file