From 2c13a6639c337bbc9e2eaafa0e048cebb467c812 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sat, 12 Oct 2024 18:47:34 -0600 Subject: feat: add transparency support --- lua/plugins/lspconfig.lua | 2 +- lua/plugins/theme.lua | 43 ++++++++++++++++++++++++++++--------------- 2 files changed, 29 insertions(+), 16 deletions(-) (limited to 'lua/plugins') diff --git a/lua/plugins/lspconfig.lua b/lua/plugins/lspconfig.lua index bcbe84e..e1b98c2 100644 --- a/lua/plugins/lspconfig.lua +++ b/lua/plugins/lspconfig.lua @@ -104,7 +104,7 @@ return { 'hrsh7th/cmp-nvim-lsp', -- Required for the keybinds 'nvim-telescope/telescope.nvim', - { 'j-hui/fidget.nvim', tag = 'legacy', opts = {} }, + { 'j-hui/fidget.nvim', tag = 'v1.4.5', opts = { notification = { window = { winblend = 0 } } } }, { 'folke/neodev.nvim', opts = {} }, }, config = function() diff --git a/lua/plugins/theme.lua b/lua/plugins/theme.lua index 5eaf7c3..44d8e8d 100644 --- a/lua/plugins/theme.lua +++ b/lua/plugins/theme.lua @@ -1,18 +1,31 @@ return { - 'shaunsingh/nord.nvim', - lazy = false, - priority = 1000, - config = function() - vim.g.nord_contrast = true - vim.g.nord_borders = true - vim.g.nord_disable_background = false - vim.g.nord_cursorline_transparent = false - vim.g.nord_enable_sidebar_background = false - vim.g.nord_uniform_diff_background = true - vim.g.nord_italic = false - vim.g.nord_bold = false + { + 'shaunsingh/nord.nvim', + lazy = false, + priority = 1000, + config = function() + vim.g.nord_contrast = true + vim.g.nord_borders = true + vim.g.nord_disable_background = false + vim.g.nord_cursorline_transparent = false + vim.g.nord_enable_sidebar_background = false + vim.g.nord_uniform_diff_background = true + vim.g.nord_italic = false + vim.g.nord_bold = false - require('nord').set() - -- vim.cmd.colorscheme = 'nord' - end, + require('nord').set() + -- vim.cmd.colorscheme = 'nord' + end, + }, + { + 'xiyaowong/transparent.nvim', + config = function() + require('transparent').setup({ + extra_groups = { + -- 'NormalFloat', -- plugins which have float panel such as Lazy, Mason, LspInfo + }, + }) + vim.keymap.set('n', 'tT', 'TransparentToggle', { desc = '[t]oggle [T]ransparency' }) + end, + }, } -- cgit v1.2.3-70-g09d2