chore: update plugins for better transparent display

This commit is contained in:
Simon Lasbrugnas 2025-03-24 10:33:51 +01:00
parent 8da0a526af
commit 4a96f5c4fd
Signed by untrusted user who does not match committer: simon
GPG key ID: 86039876BA6ED8DE
4 changed files with 24 additions and 3 deletions

View file

@ -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

View file

@ -24,7 +24,7 @@ require("lualine").setup({
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")

View file

@ -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
}, },
{ {

View file

@ -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