feat(plugins): add transparent lualine sections and markdown table mode
This commit is contained in:
1 parent
f9251b5bbb
commit
26480fdba3
2 files changed
+25
-2
No files matched your search
@@ -0,0 +1,21 @@
|
|||||||
|
-- Let the status line show the terminal background, like the rest of the
|
||||||
|
-- editor. Lualine's auto theme paints its middle sections a solid colour, so
|
||||||
|
-- they are cleared on each theme it builds, which it does again on every
|
||||||
|
-- colorscheme change. The mode and position sections keep their colours.
|
||||||
|
return {
|
||||||
|
"nvim-lualine/lualine.nvim",
|
||||||
|
opts = function(_, opts)
|
||||||
|
opts.options = opts.options or {}
|
||||||
|
opts.options.theme = function()
|
||||||
|
local theme = require("lualine.utils.loader").load_theme("auto")
|
||||||
|
for _, mode in pairs(theme) do
|
||||||
|
for _, section in ipairs({ "b", "c" }) do
|
||||||
|
if mode[section] then
|
||||||
|
mode[section].bg = "None"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return theme
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
@@ -84,7 +84,10 @@ return {
|
|||||||
|
|
||||||
-- lsp_signature.nvim is gone; astrolsp's own signature help replaces it
|
-- lsp_signature.nvim is gone; astrolsp's own signature help replaces it
|
||||||
{ "AstroNvim/astrolsp", opts = { features = { signature_help = true } } },
|
{ "AstroNvim/astrolsp", opts = { features = { signature_help = true } } },
|
||||||
|
{
|
||||||
|
"Kicamon/markdown-table-mode.nvim",
|
||||||
|
config = function() require("markdown-table-mode").setup() end,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"folke/snacks.nvim",
|
"folke/snacks.nvim",
|
||||||
---@type snacks.Config
|
---@type snacks.Config
|
||||||
@@ -105,5 +108,4 @@ return {
|
|||||||
words = { enabled = true },
|
words = { enabled = true },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user