Files
dotfiles-public/private_dot_config/nvim/lua/plugins/ui-enhancements.lua
T
bcherb2 0aaaf51421 feat: nvim config tracks the live tree
Port the live ~/.config/nvim working tree (bcherb2/nvim master plus its
uncommitted git.lua and minimap.lua edits): adds claudecode, eslint, lsp,
typescript, meow-yarn and refactoring-fix specs, drops the files the live
repo deleted, and takes live for everything else.

Kept from public: lazy.lua with luarocks disabled, the ai_assist cond
guard (nvim-ai-assist is not anonymously clonable, so a fresh box only
gets it from the private clone list), and the scrubbed endpoint comment
in place of live's LAN address.
2026-11-18 01:32:57 -05:00

168 lines
7.6 KiB
Lua

-- UI enhancement plugins for better visual experience
return {
-- Render markdown with better formatting in buffers
{
"MeanderingProgrammer/render-markdown.nvim",
ft = "markdown",
enabled = true,
dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" },
opts = {
-- md-render.nvim (lua/plugins/image.lua) owns the rendered view of
-- markdown files; the source buffer is what you edit, so keep it
-- plain. render-markdown still decorates nofile floats (LSP hover,
-- completion docs). Re-enable per buffer with :RenderMarkdown buf_toggle.
overrides = { buftype = { [""] = { enabled = false } } },
render_modes = { "n", "i", "c", "t" },
heading = {
enabled = true,
sign = true,
icons = { "󰲡 ", "󰲣 ", "󰲥 ", "󰲧 ", "󰲩 ", "󰲫 " },
},
code = {
enabled = true,
sign = true,
style = "normal",
width = "block",
},
bullet = {
enabled = true,
icons = { "●", "○", "◆", "◇" },
},
pipe_table = {
cell = "trimmed",
},
},
},
-- Highlight function arguments with different colors
-- Makes it easier to distinguish parameters
{
"m-demare/hlargs.nvim",
event = "VeryLazy",
enabled = true, -- Set to false to disable
dependencies = { "nvim-treesitter/nvim-treesitter" },
opts = {
color = "#ef9062",
highlight = {},
excluded_filetypes = {},
paint_arg_declarations = true,
paint_arg_usages = true,
performance = {
parse_delay = 1,
slow_parse_delay = 50,
max_iterations = 400,
max_concurrent_partial_parses = 30,
},
},
},
-- Dim inactive portions of code
-- Great for focusing on specific functions/blocks
-- Toggle with :Twilight
{
"folke/twilight.nvim",
cmd = { "Twilight", "TwilightEnable", "TwilightDisable" },
enabled = true, -- Set to false to disable
opts = {
dimming = {
alpha = 0.25,
color = { "Normal", "#ffffff" },
term_bg = "#000000",
inactive = false,
},
context = 10,
treesitter = true,
expand = {
"function",
"method",
"table",
"if_statement",
},
},
keys = {
{ "<leader>ut", "<cmd>Twilight<cr>", desc = "Toggle Twilight" },
},
},
-- Theme switcher with live preview
-- Browse and switch between colorschemes with instant preview
-- Open with :Themery
{
"zaldih/themery.nvim",
lazy = false, -- Load on startup to apply saved theme
priority = 1000, -- Load before other plugins
enabled = true,
keys = {
{ "<leader>uT", "<cmd>Themery<cr>", desc = "Theme Picker" },
},
config = function()
require("themery").setup({
themes = {
-- Catppuccin variants
{ name = "Catppuccin Latte", colorscheme = "catppuccin-latte" },
{ name = "Catppuccin Frappe", colorscheme = "catppuccin-frappe" },
{ name = "Catppuccin Macchiato", colorscheme = "catppuccin-macchiato" },
{ name = "Catppuccin Mocha", colorscheme = "catppuccin-mocha" },
-- Tokyo Night variants
{ name = "Tokyo Night", colorscheme = "tokyonight" },
{ name = "Tokyo Night - Night", colorscheme = "tokyonight-night" },
{ name = "Tokyo Night - Storm", colorscheme = "tokyonight-storm" },
{ name = "Tokyo Night - Day", colorscheme = "tokyonight-day" },
{ name = "Tokyo Night - Moon", colorscheme = "tokyonight-moon" },
-- Kanagawa variants
{ name = "Kanagawa", colorscheme = "kanagawa" },
{ name = "Kanagawa Wave", colorscheme = "kanagawa-wave" },
{ name = "Kanagawa Dragon", colorscheme = "kanagawa-dragon" },
{ name = "Kanagawa Lotus", colorscheme = "kanagawa-lotus" },
-- Rose Pine variants
{ name = "Rose Pine", colorscheme = "rose-pine" },
{ name = "Rose Pine Moon", colorscheme = "rose-pine-moon" },
{ name = "Rose Pine Dawn", colorscheme = "rose-pine-dawn" },
-- Nightfox variants
{ name = "Nightfox", colorscheme = "nightfox" },
{ name = "Nordfox", colorscheme = "nordfox" },
{ name = "Dawnfox", colorscheme = "dawnfox" },
{ name = "Duskfox", colorscheme = "duskfox" },
{ name = "Carbonfox", colorscheme = "carbonfox" },
{ name = "Terafox", colorscheme = "terafox" },
-- Gruvbox variants
{ name = "Gruvbox Dark", colorscheme = "gruvbox" },
{ name = "Gruvbox Material", colorscheme = "gruvbox-material" },
-- Popular themes that actually work
{ name = "Nord", colorscheme = "nord" },
{ name = "Everforest", colorscheme = "everforest" },
{ name = "Dracula", colorscheme = "dracula" },
{ name = "OneDark", colorscheme = "onedark" },
{ name = "Solarized", colorscheme = "solarized" },
{ name = "Monokai Pro", colorscheme = "monokai-pro" },
{ name = "Cyberdream", colorscheme = "cyberdream" },
{ name = "Oxocarbon", colorscheme = "oxocarbon" },
{ name = "Melange", colorscheme = "melange" },
{ name = "Nightfly", colorscheme = "nightfly" },
{ name = "Moonfly", colorscheme = "moonfly" },
{ name = "Sonokai", colorscheme = "sonokai" },
{ name = "Edge", colorscheme = "edge" },
{ name = "Ayu", colorscheme = "ayu" },
{ name = "Material", colorscheme = "material" },
{ name = "Palenight", colorscheme = "palenight" },
{ name = "GitHub Dark", colorscheme = "github_dark" },
{ name = "GitHub Dark Dimmed", colorscheme = "github_dark_dimmed" },
{ name = "GitHub Light", colorscheme = "github_light" },
{ name = "Tokyodark", colorscheme = "tokyodark" },
{ name = "Darkplus", colorscheme = "darkplus" },
{ name = "Poimandres", colorscheme = "poimandres" },
{ name = "Modus Vivendi", colorscheme = "modus" },
{ name = "Zenbones", colorscheme = "zenbones" },
{ name = "Nordic", colorscheme = "nordic" },
{ name = "Jellybeans", colorscheme = "jellybeans" },
{ name = "Tender", colorscheme = "tender" },
{ name = "Horizon", colorscheme = "horizon" },
{ name = "Moonlight", colorscheme = "moonlight" },
{ name = "Lackluster", colorscheme = "lackluster" },
},
livePreview = true, -- Apply theme while navigating
})
end,
},
}