2023-02-27 19:26:16 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2023-11-07 00:50:27 +00:00
|
|
|
}: let
|
2024-03-12 00:47:01 +00:00
|
|
|
inherit (lib.modules) mkIf;
|
|
|
|
inherit (lib.nvim.dag) entryAnywhere;
|
|
|
|
inherit (lib.nvim.binds) pushDownDefault;
|
2023-11-07 00:50:27 +00:00
|
|
|
|
2023-02-27 19:26:16 +00:00
|
|
|
cfg = config.vim.notes.mind-nvim;
|
|
|
|
in {
|
2024-03-12 00:47:01 +00:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
vim = {
|
|
|
|
startPlugins = [
|
|
|
|
"mind-nvim"
|
|
|
|
];
|
2023-02-27 19:26:16 +00:00
|
|
|
|
2024-03-12 00:47:01 +00:00
|
|
|
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-03-12 00:47:01 +00:00
|
|
|
binds.whichKey.register = pushDownDefault {
|
|
|
|
"<leader>o" = "+Notes";
|
|
|
|
};
|
2024-02-25 16:39:05 +00:00
|
|
|
|
2024-07-20 08:30:48 +00:00
|
|
|
pluginRC.mind-nvim = entryAnywhere ''
|
2024-03-12 00:47:01 +00:00
|
|
|
require'mind'.setup()
|
|
|
|
'';
|
|
|
|
};
|
2023-02-27 19:26:16 +00:00
|
|
|
};
|
|
|
|
}
|