mirror of
https://github.com/arkorty/Neolite.git
synced 2026-03-18 00:57:12 +00:00
Add transparency support
Changes to be committed:
modified: init.lua
modified: lua/plugins.lua
new file: lua/transparency.lua
This commit is contained in:
1
init.lua
1
init.lua
@@ -11,3 +11,4 @@ require("fuzzy-finder")
|
|||||||
require("syntax-highlight")
|
require("syntax-highlight")
|
||||||
require("lsp-config")
|
require("lsp-config")
|
||||||
require("lsp-format")
|
require("lsp-format")
|
||||||
|
require("transparency")
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ if not ok then
|
|||||||
end
|
end
|
||||||
|
|
||||||
packer.startup(function(use)
|
packer.startup(function(use)
|
||||||
|
-- Transparency
|
||||||
|
use("xiyaowong/nvim-transparent")
|
||||||
|
|
||||||
-- Base16 colorscheme
|
-- Base16 colorscheme
|
||||||
use("RRethy/nvim-base16")
|
use("RRethy/nvim-base16")
|
||||||
|
|
||||||
|
|||||||
20
lua/transparency.lua
Normal file
20
lua/transparency.lua
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
local ok, transparent = pcall(require, "transparent")
|
||||||
|
if not ok then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
transparent.setup({
|
||||||
|
enable = false, -- boolean: enable transparent
|
||||||
|
extra_groups = { -- table/string: additional groups that should be cleared
|
||||||
|
-- In particular, when you set it to 'all', that means all available groups
|
||||||
|
-- example of akinsho/nvim-bufferline.lua
|
||||||
|
"BufferLineTabClose",
|
||||||
|
"BufferlineBufferSelected",
|
||||||
|
"BufferLineFill",
|
||||||
|
"BufferLineBackground",
|
||||||
|
"BufferLineSeparator",
|
||||||
|
"BufferLineIndicatorSelected",
|
||||||
|
},
|
||||||
|
exclude = {}, -- table: groups you don't want to clear
|
||||||
|
ignore_linked_group = true, -- boolean: don't clear a group that links to another group
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user