mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-22 19:59:49 +01:00
29 lines
584 B
Nix
29 lines
584 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf nvim pushDownDefault;
|
|
|
|
cfg = config.vim.notes.mind-nvim;
|
|
in {
|
|
config = mkIf (cfg.enable) {
|
|
vim.startPlugins = [
|
|
"mind-nvim"
|
|
];
|
|
|
|
vim.maps.normal = {
|
|
"<leader>om" = {action = ":MindOpenMain<CR>";};
|
|
"<leader>op" = {action = ":MindOpenProject<CR>";};
|
|
"<leader>oc" = {action = ":MindClose<CR>";};
|
|
};
|
|
|
|
vim.binds.whichKey.register = pushDownDefault {
|
|
"<leader>o" = "+Notes";
|
|
};
|
|
|
|
vim.luaConfigRC.mind-nvim = nvim.dag.entryAnywhere ''
|
|
require'mind'.setup()
|
|
'';
|
|
};
|
|
}
|