mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-23 13:50:44 +00:00
31 lines
555 B
Nix
31 lines
555 B
Nix
{
|
|
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 = {
|
|
"<leader>om" = ":MindOpenMain<CR>";
|
|
"<leader>op" = ":MindOpenProject<CR>";
|
|
"<leader>oc" = ":MindClose<CR>";
|
|
};
|
|
|
|
vim.luaConfigRC.mind-nvim = nvim.dag.entryAnywhere ''
|
|
require'mind'.setup()
|
|
'';
|
|
};
|
|
}
|