{ pkgs, config, lib, ... }: with lib; with builtins; let cfg = config.vim.languages.markdown; in { config = mkIf cfg.enable (mkMerge [ (mkIf cfg.glow.enable { vim.startPlugins = ["glow-nvim"]; vim.globals = { "glow_binary_path" = "${pkgs.glow}/bin"; }; vim.configRC.glow = nvim.dag.entryAnywhere '' autocmd FileType markdown noremap p :Glow ''; }) ]); }