{ config, lib, ... }: let inherit (lib.modules) mkIf; inherit (lib.nvim.dag) entryAnywhere; inherit (lib.nvim.binds) pushDownDefault; cfg = config.vim.notes.mind-nvim; in { config = mkIf cfg.enable { vim = { startPlugins = [ "mind-nvim" ]; maps.normal = { "om" = {action = ":MindOpenMain";}; "op" = {action = ":MindOpenProject";}; "oc" = {action = ":MindClose";}; }; binds.whichKey.register = pushDownDefault { "o" = "+Notes"; }; pluginRC.mind-nvim = entryAnywhere '' require'mind'.setup() ''; }; }; }