Modified neovim to include transparency in terminal
This commit is contained in:
parent
038154ba6e
commit
7b080f7f11
1 changed files with 15 additions and 1 deletions
|
|
@ -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 })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue