chore: update plugins for better transparent display
This commit is contained in:
parent
8da0a526af
commit
4a96f5c4fd
4 changed files with 24 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ opt.expandtab = false
|
||||||
opt.smartindent = true
|
opt.smartindent = true
|
||||||
|
|
||||||
-- Highlight cursor line
|
-- Highlight cursor line
|
||||||
opt.cursorline = true
|
-- opt.cursorline = true
|
||||||
|
|
||||||
-- Use line wrapping
|
-- Use line wrapping
|
||||||
opt.wrap = true
|
opt.wrap = true
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,11 @@ require("lualine").setup({
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { "mode" },
|
lualine_a = { "mode" },
|
||||||
lualine_b = { {'branch', icon = {'', align='right'}} , "diff", "diagnostics" },
|
lualine_b = { { 'branch', icon = { '', align = 'right' } }, "diff", "diagnostics" },
|
||||||
lualine_c = { { "filename", path = 1 } },
|
lualine_c = { { "filename", path = 1 } },
|
||||||
lualine_x = { "filetype" },
|
lualine_x = { "filetype" },
|
||||||
lualine_y = {},
|
lualine_y = {},
|
||||||
lualine_z = { "location" }
|
lualine_z = { { "location", color = { bg = 'none' } } },
|
||||||
},
|
},
|
||||||
inactive_sections = {
|
inactive_sections = {
|
||||||
lualine_a = {},
|
lualine_a = {},
|
||||||
|
|
@ -39,3 +39,5 @@ require("lualine").setup({
|
||||||
inactive_winbar = {},
|
inactive_winbar = {},
|
||||||
extensions = {}
|
extensions = {}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.cmd("hi lualine_c_normal guibg=none")
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,8 @@ return {
|
||||||
config = function()
|
config = function()
|
||||||
-- vim.g.zenbones_darken_comments = 45
|
-- vim.g.zenbones_darken_comments = 45
|
||||||
vim.cmd.colorscheme('zenwritten')
|
vim.cmd.colorscheme('zenwritten')
|
||||||
|
-- Set transparent background and disable cursorline
|
||||||
|
vim.api.nvim_set_hl(0, "Normal", { bg = "NONE" })
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,23 @@ return {
|
||||||
desc = "Toggle Treesitter Context",
|
desc = "Toggle Treesitter Context",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
config = function(_, opts)
|
||||||
|
require("treesitter-context").setup(opts)
|
||||||
|
|
||||||
|
-- Set transparent background for TreesitterContext highlight groups
|
||||||
|
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||||
|
callback = function()
|
||||||
|
vim.cmd("hi TreesitterContext guibg=none")
|
||||||
|
vim.cmd("hi TreesitterContextLineNumber guibg=none")
|
||||||
|
vim.cmd("hi TreesitterContextBottom guibg=none")
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Apply immediately
|
||||||
|
vim.cmd("hi TreesitterContext guibg=none")
|
||||||
|
vim.cmd("hi TreesitterContextLineNumber guibg=none")
|
||||||
|
vim.cmd("hi TreesitterContextBottom guibg=none")
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Automatically add closing tags for HTML and JSX
|
-- Automatically add closing tags for HTML and JSX
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue