mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 23:16:46 +00:00
27 lines
444 B
Nix
27 lines
444 B
Nix
{
|
|
pkgs,
|
|
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()
|
|
'';
|
|
};
|
|
}
|