mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-22 06:29:48 +01:00
Merge pull request #11 from NotAShelf/feature/mind-nvim
feat: add mind-nvim to note-taking plugins
This commit is contained in:
commit
23af12349a
6 changed files with 56 additions and 1 deletions
|
@ -136,7 +136,8 @@ inputs: let
|
||||||
|
|
||||||
vim.notes = {
|
vim.notes = {
|
||||||
obsidian.enable = false; # FIXME neovim fails to build if obsidian is enabled
|
obsidian.enable = false; # FIXME neovim fails to build if obsidian is enabled
|
||||||
orgmode.enable = true;
|
orgmode.enable = false;
|
||||||
|
mind-nvim.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
vim.terminal = {
|
vim.terminal = {
|
||||||
|
|
17
flake.lock
17
flake.lock
|
@ -514,6 +514,22 @@
|
||||||
"type": "github"
|
"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": {
|
"minimap-vim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -1079,6 +1095,7 @@
|
||||||
"lspkind": "lspkind",
|
"lspkind": "lspkind",
|
||||||
"lspsaga": "lspsaga",
|
"lspsaga": "lspsaga",
|
||||||
"lualine": "lualine",
|
"lualine": "lualine",
|
||||||
|
"mind-nvim": "mind-nvim",
|
||||||
"minimap-vim": "minimap-vim",
|
"minimap-vim": "minimap-vim",
|
||||||
"nil": "nil",
|
"nil": "nil",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
|
|
|
@ -361,6 +361,11 @@
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mind-nvim = {
|
||||||
|
url = "github:phaazon/mind.nvim";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
|
||||||
# Terminal
|
# Terminal
|
||||||
toggleterm-nvim = {
|
toggleterm-nvim = {
|
||||||
url = "github:akinsho/toggleterm.nvim";
|
url = "github:akinsho/toggleterm.nvim";
|
||||||
|
|
|
@ -68,6 +68,7 @@ with lib; let
|
||||||
"gesture-nvim"
|
"gesture-nvim"
|
||||||
"comment-nvim"
|
"comment-nvim"
|
||||||
"kommentary"
|
"kommentary"
|
||||||
|
"mind-nvim"
|
||||||
];
|
];
|
||||||
# You can either use the name of the plugin or a package.
|
# You can either use the name of the plugin or a package.
|
||||||
pluginsType = with types; listOf (nullOr (either (enum availablePlugins) package));
|
pluginsType = with types; listOf (nullOr (either (enum availablePlugins) package));
|
||||||
|
|
|
@ -2,5 +2,6 @@ _: {
|
||||||
imports = [
|
imports = [
|
||||||
./obsidian
|
./obsidian
|
||||||
./orgmode
|
./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 = {
|
||||||
|
"<leader>om" = ":MindOpenMain<CR>";
|
||||||
|
"<leader>op" = ":MindOpenProject<CR>";
|
||||||
|
"<leader>oc" = ":MindClose<CR>";
|
||||||
|
};
|
||||||
|
|
||||||
|
vim.luaConfigRC.mind-nvim = nvim.dag.entryAnywhere ''
|
||||||
|
require'mind'.setup()
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue