Files
dotfiles/dot_config/nvim/lua/plugins/nabla.lua
s0wlz (Matthias Puchstein) 8018b53353 feat: finalize migration to chezmoi and modernize configuration logic
- Modularize Hyprland config into hyprland.d/
- Implement infinitely scalable monitor/workspace logic using templates and loop-based data structures
- Consolidate host-specific configs (hyprlock, hyprpaper, waybar) into single templates
- Resolve waybar symlink conflict and fix template execution errors
- Integrate chezmoi data variables for scale, resolution, and peripherals
2025-12-27 22:52:43 +01:00

20 lines
569 B
Lua

-- Lightweight inline ASCII preview for LaTeX math
return {
"jbyuki/nabla.nvim",
ft = { "tex", "plaintex", "markdown" },
keys = {
-- Popup preview for the expression under cursor
{ "<leader>mp", function() require("nabla").popup() end, desc = "Math: popup preview" },
-- Toggle inline virtual rendering; re-enable wrap after toggle (nabla toggles it off)
{
"<leader>mv",
function()
require("nabla").toggle_virt { autogen = true }
vim.wo.wrap = true
end,
desc = "Math: toggle inline preview",
},
},
}