Modified neovim to include transparency in terminal

This commit is contained in:
lulusilly 2025-10-07 13:49:18 -04:00
parent 038154ba6e
commit 7b080f7f11

View file

@ -28,6 +28,8 @@ end
vim.opt.rtp:prepend(lazypath)
-- Setup the plugins you need.
require("lazy").setup({
-- For background transparency
{ 'xiyaowong/transparent.nvim' },
-- === The colorscheme plugin is specified here. ===
-- Gruvbox theme plugin. It will be automatically installed by lazy.nvim.
{ 'ellisonleao/gruvbox.nvim', config = function()
@ -59,6 +61,16 @@ require("lazy").setup({
end
},
})
-- Transparent configuration
require('transparent').setup({
enable = true, -- boolean: enable transparent
extra_groups = { -- table: additional groups to clear
'Normal', 'NormalNC', 'Comment', 'Constant', 'Identifier',
'Statement', 'PreProc', 'Type', 'Special', 'Underlined',
'Todo', 'String', 'Function', 'Conditional', 'Repeat',
'Operator', 'Structure', 'LineNr', 'SignColumn', 'EndOfBuffer'
},
})
-- Treesitter configuration.
require("nvim-treesitter.configs").setup({
highlight = { enable = true },
@ -123,4 +135,6 @@ vim.keymap.set('n', '<leader>a', 'ggVG', { desc = 'Select entire file' })
-- Groff => PDF
vim.keymap.set('n', '<leader>cg', ':!groff -ms -e %:t -T pdf > %:r.pdf<CR>', { desc = 'Compile Groff file to PDF' })
-- Typst => PDF
vim.keymap.set('n', '<leader>ct', ':!typst compile %:t<CR>', { desc = 'Compile Typst file to PDF'} )
vim.keymap.set('n', '<leader>ct', ':!typst compile %:t<CR>', { desc = 'Compile Typst file to PDF'} )
-- Keybinding to toggle transparency
vim.api.nvim_set_keymap('n', '<leader>tt', ':TransparentToggle<CR>', { noremap = true, silent = true })