From 26480fdba3acc45d4a74d7e9a291114a4ecf1de8 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Fri, 6 Nov 2026 09:46:32 -0500 Subject: [PATCH] feat(plugins): add transparent lualine sections and markdown table mode --- lua/plugins/lualine-transparent.lua | 21 +++++++++++++++++++++ lua/plugins/user.lua | 6 ++++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 lua/plugins/lualine-transparent.lua diff --git a/lua/plugins/lualine-transparent.lua b/lua/plugins/lualine-transparent.lua new file mode 100644 index 0000000..cd18539 --- /dev/null +++ b/lua/plugins/lualine-transparent.lua @@ -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, +} diff --git a/lua/plugins/user.lua b/lua/plugins/user.lua index 4e54d17..49546f7 100644 --- a/lua/plugins/user.lua +++ b/lua/plugins/user.lua @@ -84,7 +84,10 @@ return { -- lsp_signature.nvim is gone; astrolsp's own signature help replaces it { "AstroNvim/astrolsp", opts = { features = { signature_help = true } } }, - + { + "Kicamon/markdown-table-mode.nvim", + config = function() require("markdown-table-mode").setup() end, + }, { "folke/snacks.nvim", ---@type snacks.Config @@ -105,5 +108,4 @@ return { words = { enabled = true }, }, }, - }