mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-14 17:55:58 +01:00
25 lines
436 B
Nix
25 lines
436 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib;
|
|
with builtins; let
|
|
cfg = config.vim.notes.mind-nvim;
|
|
in {
|
|
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()
|
|
'';
|
|
};
|
|
}
|