transparent

This commit is contained in:
ZaneFerns360 2024-09-13 00:32:15 +05:30
parent d2bdce1a9b
commit fb0af05bc3
2 changed files with 55 additions and 1 deletions

View File

@ -767,7 +767,7 @@ require('lazy').setup({
-- Disable "format_on_save lsp_fallback" for languages that don't -- Disable "format_on_save lsp_fallback" for languages that don't
-- have a well standardized coding style. You can add additional -- have a well standardized coding style. You can add additional
-- languages here or re-enable it for the disabled ones. -- languages here or re-enable it for the disabled ones.
-- local disable_filetypes = { c = true, cpp = true } local disable_filetypes = { c = true, cpp = true }
local lsp_format_opt local lsp_format_opt
if disable_filetypes[vim.bo[bufnr].filetype] then if disable_filetypes[vim.bo[bufnr].filetype] then
lsp_format_opt = 'never' lsp_format_opt = 'never'

View File

@ -0,0 +1,54 @@
local transparent = {
{
'xiyaowong/transparent.nvim',
lazy = false, -- make sure we load this during startup if it is your main colorscheme
priority = 1000, -- make sure to load this before all the other start plugins
config = function()
require('transparent').setup {
groups = {
'Normal',
'NormalNC',
'Comment',
'Constant',
'Special',
'Identifier',
'Statement',
'PreProc',
'Type',
'Underlined',
'Todo',
'String',
'Function',
'Conditional',
'Repeat',
'Operator',
'Structure',
'LineNr',
'NonText',
'SignColumn',
'CursorLine',
'CursorLineNr',
'StatusLine',
'StatusLineNC',
'EndOfBuffer',
},
extra_groups = {
'NormalFloat', -- plugins which have float panel such as Lazy, Mason, LspInfo
'NeoTreeNormal',
'NeoTreeNormalNC',
'NeoTreeEndOfBuffer',
'NeoTreeVertSplit',
},
exclude_groups = {},
on_clear = function() end,
}
-- Add additional highlight groups
vim.g.transparent_groups = vim.list_extend(vim.g.transparent_groups or {}, { 'ExtraGroup' })
vim.cmd [[TransparentEnable]]
end,
},
}
return transparent