mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-10 08:05:57 +01:00
25 lines
475 B
Nix
25 lines
475 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.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()
|
|
'';
|
|
};
|
|
}
|