mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-05 18:01:32 +00:00
feat: add mind-nvim to note-taking plugins
This commit is contained in:
parent
a3b533b923
commit
3d91f6c4c1
6 changed files with 56 additions and 1 deletions
|
@ -2,5 +2,6 @@ _: {
|
|||
imports = [
|
||||
./obsidian
|
||||
./orgmode
|
||||
./mind-nvim
|
||||
];
|
||||
}
|
||||
|
|
30
modules/notes/mind-nvim/default.nix
Normal file
30
modules/notes/mind-nvim/default.nix
Normal 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()
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue