mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-02 03:21:14 +00:00
26 lines
478 B
Nix
26 lines
478 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf nvim;
|
|
|
|
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.luaConfigRC.mind-nvim = nvim.dag.entryAnywhere ''
|
|
require'mind'.setup()
|
|
'';
|
|
};
|
|
}
|