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