2023-02-16 20:57:56 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib;
|
|
|
|
with builtins; let
|
|
|
|
cfg = config.vim.notes.mind-nvim;
|
|
|
|
in {
|
|
|
|
options.vim.notes.mind-nvim = {
|
|
|
|
enable = mkEnableOption "The power of trees at your fingertips. ";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf (cfg.enable) {
|
|
|
|
vim.startPlugins = [
|
|
|
|
"mind-nvim"
|
|
|
|
];
|
|
|
|
|
|
|
|
vim.nnoremap = {
|
2023-02-16 21:08:45 +00:00
|
|
|
"<leader>om" = ":MindOpenMain<CR>";
|
|
|
|
"<leader>op" = ":MindOpenProject<CR>";
|
|
|
|
"<leader>oc" = ":MindClose<CR>";
|
2023-02-16 20:57:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vim.luaConfigRC.mind-nvim = nvim.dag.entryAnywhere ''
|
|
|
|
require'mind'.setup()
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|