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)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
-- Setup the plugins you need.
|
-- Setup the plugins you need.
|
||||||
require("lazy").setup({
|
require("lazy").setup({
|
||||||
|
-- For background transparency
|
||||||
|
{ 'xiyaowong/transparent.nvim' },
|
||||||
-- === The colorscheme plugin is specified here. ===
|
-- === The colorscheme plugin is specified here. ===
|
||||||
-- Gruvbox theme plugin. It will be automatically installed by lazy.nvim.
|
-- Gruvbox theme plugin. It will be automatically installed by lazy.nvim.
|
||||||
{ 'ellisonleao/gruvbox.nvim', config = function()
|
{ 'ellisonleao/gruvbox.nvim', config = function()
|
||||||
|
|
@ -59,6 +61,16 @@ require("lazy").setup({
|
||||||
end
|
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.
|
-- Treesitter configuration.
|
||||||
require("nvim-treesitter.configs").setup({
|
require("nvim-treesitter.configs").setup({
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
|
|
@ -124,3 +136,5 @@ vim.keymap.set('n', '<leader>a', 'ggVG', { desc = 'Select entire file' })
|
||||||
vim.keymap.set('n', '<leader>cg', ':!groff -ms -e %:t -T pdf > %:r.pdf<CR>', { desc = 'Compile Groff file to PDF' })
|
vim.keymap.set('n', '<leader>cg', ':!groff -ms -e %:t -T pdf > %:r.pdf<CR>', { desc = 'Compile Groff file to PDF' })
|
||||||
-- Typst => 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