feat: add mind-nvim to note-taking plugins

This commit is contained in:
NotAShelf 2023-02-16 23:57:56 +03:00
commit 3d91f6c4c1
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1
6 changed files with 56 additions and 1 deletions

View file

@ -0,0 +1,30 @@
{
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 = {
"<C-o-m>" = ":MindOpenMain<CR>";
"<C-o-p" = ":MindOpenProject<CR>";
"<leader>mc" = ":MindClose<CR>";
};
vim.luaConfigRC.mind-nvim = nvim.dag.entryAnywhere ''
require'mind'.setup()
'';
};
}