From fb0af05bc3e341efe42086a57d71b409e763c2d7 Mon Sep 17 00:00:00 2001 From: ZaneFerns360 Date: Fri, 13 Sep 2024 00:32:15 +0530 Subject: [PATCH] transparent --- init.lua | 2 +- lua/custom/plugins/transparent.lua | 54 ++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 lua/custom/plugins/transparent.lua diff --git a/init.lua b/init.lua index 0d40dfe3..8ea6ffdd 100644 --- a/init.lua +++ b/init.lua @@ -767,7 +767,7 @@ require('lazy').setup({ -- Disable "format_on_save lsp_fallback" for languages that don't -- have a well standardized coding style. You can add additional -- 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 if disable_filetypes[vim.bo[bufnr].filetype] then lsp_format_opt = 'never' diff --git a/lua/custom/plugins/transparent.lua b/lua/custom/plugins/transparent.lua new file mode 100644 index 00000000..21ba2c4e --- /dev/null +++ b/lua/custom/plugins/transparent.lua @@ -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