nvf/modules/plugins/notes/mind-nvim/config.nix

34 lines
672 B
Nix
Raw Normal View History

{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.binds) pushDownDefault;
cfg = config.vim.notes.mind-nvim;
in {
config = mkIf cfg.enable {
vim = {
startPlugins = [
"mind-nvim"
];
maps.normal = {
"<leader>om" = {action = ":MindOpenMain<CR>";};
"<leader>op" = {action = ":MindOpenProject<CR>";};
"<leader>oc" = {action = ":MindClose<CR>";};
};
binds.whichKey.register = pushDownDefault {
"<leader>o" = "+Notes";
};
2024-02-25 16:39:05 +00:00
pluginRC.mind-nvim = entryAnywhere ''
require'mind'.setup()
'';
};
};
}