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