2023-02-27 19:26:16 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2023-11-07 00:50:27 +00:00
|
|
|
}: let
|
2024-02-26 03:52:21 +00:00
|
|
|
inherit (lib) mkIf nvim pushDownDefault;
|
2023-11-07 00:50:27 +00:00
|
|
|
|
2023-02-27 19:26:16 +00:00
|
|
|
cfg = config.vim.notes.mind-nvim;
|
|
|
|
in {
|
|
|
|
config = mkIf (cfg.enable) {
|
|
|
|
vim.startPlugins = [
|
|
|
|
"mind-nvim"
|
|
|
|
];
|
|
|
|
|
2023-04-10 11:42:31 +00:00
|
|
|
vim.maps.normal = {
|
|
|
|
"<leader>om" = {action = ":MindOpenMain<CR>";};
|
|
|
|
"<leader>op" = {action = ":MindOpenProject<CR>";};
|
|
|
|
"<leader>oc" = {action = ":MindClose<CR>";};
|
2023-02-27 19:26:16 +00:00
|
|
|
};
|
|
|
|
|
2024-02-26 03:52:21 +00:00
|
|
|
vim.binds.whichKey.register = pushDownDefault {
|
2024-02-25 16:39:05 +00:00
|
|
|
"<leader>o" = "+Notes";
|
|
|
|
};
|
|
|
|
|
2023-02-27 19:26:16 +00:00
|
|
|
vim.luaConfigRC.mind-nvim = nvim.dag.entryAnywhere ''
|
|
|
|
require'mind'.setup()
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|