xiyaowong / transparent.nvim

Remove all background colors to make nvim transparent
806 stars 23 forks source link

Will Disable when I save #46

Closed ian-ie closed 3 months ago

ian-ie commented 1 year ago

error.webm

 {
        "xiyaowong/transparent.nvim",
        lazy = false,
        config = function (_, opts)
            require("transparent").setup({
                vim.api.nvim_set_hl(0, 'NotifyBackground', vim.api.nvim_get_hl_by_name('Normal', true)),
                groups = { -- table: default groups
                    'Normal', 'NormalNC', 'Comment', 'Constant', 'Special', 'Identifier',
                    'Statement', 'PreProc', 'Type', 'Underlined', 'Todo', 'String', 'Function',
                    'Conditional', 'Repeat', 'Operator', 'Structure', 'LineNr', 'NonText',
                    'SignColumn', 'CursorLineNr', 'EndOfBuffer',
                },
                extra_groups = {
                    "NormalFloat", -- plugins which have float panel such as Lazy, Mason, LspInfo
                }, -- table: additional groups that should be cleared
                exclude_groups = {}, -- table: groups you don't want to clear
            })
        end
    }
xiyaowong commented 1 year ago

Please provide a minimal config:)

ramtinJ95 commented 1 year ago

I have the same issue and I dont have any config on this plugin just use it with packer and run :TransparentEnable