xiyaowong/nvim-transparent

github github
colors plugin
star 39
stars
alert-circle 1
open issues
users 1
subscribers
git-branch 0
forks
CREATED

2021-04-09

UPDATED

5 days ago

packer

require('packer').startup(function()
  use 'xiyaowong/nvim-transparent'
end)

paq

require "paq" { 
  'xiyaowong/nvim-transparent'
}

nvim-transparent

Remove all background colors to make nvim transparent.

screenshot


Usage

example config

require("transparent").setup({
  enable = true, -- boolean: enable transparent
  extra_groups = { -- table/string: additional groups that should be clear
    -- In particular, when you set it to 'all', that means all avaliable groups

    -- example of akinsho/nvim-bufferline.lua
    "BufferLineTabClose",
    "BufferlineBufferSelected",
    "BufferLineFill",
    "BufferLineBackground",
    "BufferLineSeparator",
    "BufferLineIndicatorSelected",
  },
  exclude = {}, -- table: groups you don't want to clear
})

you can also set the groups option to override the default groups. the default groups: Normal Comment Constant Special Identifier Statement PreProc Type Underlined Todo String Function Conditional Repeat Operator Structure LineNr NonText SignColumn CursorLineNr.


global variable g:transparent_enabled has greater priority to option enable

disable by default

let g:transparent_enabled = v:false

Commands

:TransparentEnable
:TransparentDisable
:TransparentToggle

Aknowledgement

vim-transparent