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
|
||||
|
||||
-- Highlight cursor line
|
||||
opt.cursorline = true
|
||||
-- opt.cursorline = true
|
||||
|
||||
-- Use line wrapping
|
||||
opt.wrap = true
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require("lualine").setup({
|
|||
lualine_c = { { "filename", path = 1 } },
|
||||
lualine_x = { "filetype" },
|
||||
lualine_y = {},
|
||||
lualine_z = { "location" }
|
||||
lualine_z = { { "location", color = { bg = 'none' } } },
|
||||
},
|
||||
inactive_sections = {
|
||||
lualine_a = {},
|
||||
|
|
@ -39,3 +39,5 @@ require("lualine").setup({
|
|||
inactive_winbar = {},
|
||||
extensions = {}
|
||||
})
|
||||
|
||||
vim.cmd("hi lualine_c_normal guibg=none")
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ return {
|
|||
config = function()
|
||||
-- vim.g.zenbones_darken_comments = 45
|
||||
vim.cmd.colorscheme('zenwritten')
|
||||
-- Set transparent background and disable cursorline
|
||||
vim.api.nvim_set_hl(0, "Normal", { bg = "NONE" })
|
||||
end
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -52,6 +52,23 @@ return {
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue