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