mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
feat: add mind-nvim to note-taking plugins
This commit is contained in:
parent
a3b533b923
commit
3d91f6c4c1
6 changed files with 56 additions and 1 deletions
|
@ -136,7 +136,8 @@ inputs: let
|
|||
|
||||
vim.notes = {
|
||||
obsidian.enable = false; # FIXME neovim fails to build if obsidian is enabled
|
||||
orgmode.enable = true;
|
||||
orgmode.enable = false;
|
||||
mind-nvim.enable = true;
|
||||
};
|
||||
|
||||
vim.terminal = {
|
||||
|
|
17
flake.lock
17
flake.lock
|
@ -514,6 +514,22 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"mind-nvim": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1674572816,
|
||||
"narHash": "sha256-yLf/2NvPT0RtFh6+0W32Uaj3Tjs52oyZSb8Jq3INZI4=",
|
||||
"owner": "phaazon",
|
||||
"repo": "mind.nvim",
|
||||
"rev": "e59c52758c399caceb549c698cfa2d65e6bbb9f9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "phaazon",
|
||||
"repo": "mind.nvim",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"minimap-vim": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -1079,6 +1095,7 @@
|
|||
"lspkind": "lspkind",
|
||||
"lspsaga": "lspsaga",
|
||||
"lualine": "lualine",
|
||||
"mind-nvim": "mind-nvim",
|
||||
"minimap-vim": "minimap-vim",
|
||||
"nil": "nil",
|
||||
"nixpkgs": "nixpkgs",
|
||||
|
|
|
@ -361,6 +361,11 @@
|
|||
flake = false;
|
||||
};
|
||||
|
||||
mind-nvim = {
|
||||
url = "github:phaazon/mind.nvim";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
# Terminal
|
||||
toggleterm-nvim = {
|
||||
url = "github:akinsho/toggleterm.nvim";
|
||||
|
|
|
@ -68,6 +68,7 @@ with lib; let
|
|||
"gesture-nvim"
|
||||
"comment-nvim"
|
||||
"kommentary"
|
||||
"mind-nvim"
|
||||
];
|
||||
# You can either use the name of the plugin or a package.
|
||||
pluginsType = with types; listOf (nullOr (either (enum availablePlugins) package));
|
||||
|
|
|
@ -2,5 +2,6 @@ _: {
|
|||
imports = [
|
||||
./obsidian
|
||||
./orgmode
|
||||
./mind-nvim
|
||||
];
|
||||
}
|
||||
|
|
30
modules/notes/mind-nvim/default.nix
Normal file
30
modules/notes/mind-nvim/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with builtins; let
|
||||
cfg = config.vim.notes.mind-nvim;
|
||||
in {
|
||||
options.vim.notes.mind-nvim = {
|
||||
enable = mkEnableOption "The power of trees at your fingertips. ";
|
||||
};
|
||||
|
||||
config = mkIf (cfg.enable) {
|
||||
vim.startPlugins = [
|
||||
"mind-nvim"
|
||||
];
|
||||
|
||||
vim.nnoremap = {
|
||||
"<C-o-m>" = ":MindOpenMain<CR>";
|
||||
"<C-o-p" = ":MindOpenProject<CR>";
|
||||
"<leader>mc" = ":MindClose<CR>";
|
||||
};
|
||||
|
||||
vim.luaConfigRC.mind-nvim = nvim.dag.entryAnywhere ''
|
||||
require'mind'.setup()
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue