mirror of
https://github.com/aljazceru/omakub.git
synced 2026-01-31 09:54:23 +01:00
feat: add commons with transparent bg
This commit is contained in:
31
themes/neovim/commons.lua
Normal file
31
themes/neovim/commons.lua
Normal file
@@ -0,0 +1,31 @@
|
||||
local commons = {}
|
||||
|
||||
commons.set_transparent_bg = function()
|
||||
-- transparent background
|
||||
vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NormalFloat', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'FloatBorder', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'Pmenu', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'Terminal', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'EndOfBuffer', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'FoldColumn', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'Folded', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'SignColumn', { bg = 'none' })
|
||||
|
||||
-- transparent background for neotree
|
||||
vim.api.nvim_set_hl(0, 'NeoTreeNormal', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NeoTreeNormalNC', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NeoTreeVertSplit', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NeoTreeWinSeparator', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NeoTreeEndOfBuffer', { bg = 'none' })
|
||||
|
||||
-- transparent background for nvim-tree
|
||||
vim.api.nvim_set_hl(0, 'NvimTreeNormal', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NvimTreeVertSplit', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NvimTreeEndOfBuffer', { bg = 'none' })
|
||||
|
||||
-- hides `~` at the end of the buffer
|
||||
vim.cmd([[set fillchars+=eob:\ ]])
|
||||
end
|
||||
|
||||
return commons
|
||||
Reference in New Issue
Block a user