mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-08 05:45:58 +01:00
31 lines
548 B
Nix
31 lines
548 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 = {
|
||
|
"<C-o-m>" = ":MindOpenMain<CR>";
|
||
|
"<C-o-p" = ":MindOpenProject<CR>";
|
||
|
"<leader>mc" = ":MindClose<CR>";
|
||
|
};
|
||
|
|
||
|
vim.luaConfigRC.mind-nvim = nvim.dag.entryAnywhere ''
|
||
|
require'mind'.setup()
|
||
|
'';
|
||
|
};
|
||
|
}
|