{pkgs, ...}: let stylePkg = pkgs.fetchFromGitHub { owner = "catppuccin"; repo = "glamour"; rev = "f410083af1e9b2418bcd73dbbbc987461d4aa292"; hash = "sha256-a7yR19KcxIS4UPhuhB+X0B+s8D5eytw0/EB0X4z46kA="; }; in { programs.nixvim = { plugins = { glow = { enable = true; settings = { border = "single"; style = "${stylePkg.outPath}/themes/catppuccin-latte.json"; }; }; which-key.settings.spec = [ { __unkeyed = "p"; mode = "n"; group = "Preview"; icon = " "; } ]; }; keymaps = [ { mode = "n"; key = "pg"; action = "Glow"; options = { desc = "Glow (Markdown)"; }; } ]; }; }