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