transparent
This commit is contained in:
parent
d2bdce1a9b
commit
fb0af05bc3
2
init.lua
2
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'
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue