mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 16:32:24 +00:00
mini/basics: init
This commit is contained in:
parent
c52e3c0507
commit
be5ab79342
7 changed files with 62 additions and 0 deletions
|
@ -58,6 +58,7 @@
|
||||||
- `mini.align`
|
- `mini.align`
|
||||||
- `mini.animate`
|
- `mini.animate`
|
||||||
- `mini.base16`
|
- `mini.base16`
|
||||||
|
- `mini.basics`
|
||||||
|
|
||||||
[kaktu5](https://github.com/kaktu5):
|
[kaktu5](https://github.com/kaktu5):
|
||||||
|
|
||||||
|
|
17
flake.lock
17
flake.lock
|
@ -1000,6 +1000,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"plugin-mini-basics": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1730194519,
|
||||||
|
"narHash": "sha256-R8POaMcgb6SBOxIpanZsswieywapnU7zDNjQMRTkR8U=",
|
||||||
|
"owner": "echasnovski",
|
||||||
|
"repo": "mini.basics",
|
||||||
|
"rev": "67c10b3436d5d3b892715137f4773e71c6753b13",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "echasnovski",
|
||||||
|
"repo": "mini.basics",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"plugin-minimap-vim": {
|
"plugin-minimap-vim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -2200,6 +2216,7 @@
|
||||||
"plugin-mini-align": "plugin-mini-align",
|
"plugin-mini-align": "plugin-mini-align",
|
||||||
"plugin-mini-animate": "plugin-mini-animate",
|
"plugin-mini-animate": "plugin-mini-animate",
|
||||||
"plugin-mini-base16": "plugin-mini-base16",
|
"plugin-mini-base16": "plugin-mini-base16",
|
||||||
|
"plugin-mini-basics": "plugin-mini-basics",
|
||||||
"plugin-minimap-vim": "plugin-minimap-vim",
|
"plugin-minimap-vim": "plugin-minimap-vim",
|
||||||
"plugin-modes-nvim": "plugin-modes-nvim",
|
"plugin-modes-nvim": "plugin-modes-nvim",
|
||||||
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",
|
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",
|
||||||
|
|
|
@ -765,5 +765,10 @@
|
||||||
url = "github:echasnovski/mini.base16";
|
url = "github:echasnovski/mini.base16";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plugin-mini-basics = {
|
||||||
|
url = "github:echasnovski/mini.basics";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
13
modules/plugins/mini/basics/basics.nix
Normal file
13
modules/plugins/mini/basics/basics.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.options) mkEnableOption mkOption;
|
||||||
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||||
|
in {
|
||||||
|
options.vim.mini.basics = {
|
||||||
|
enable = mkEnableOption "mini.basics";
|
||||||
|
setupOpts = mkPluginSetupOption "mini.basics" {};
|
||||||
|
};
|
||||||
|
}
|
19
modules/plugins/mini/basics/config.nix
Normal file
19
modules/plugins/mini/basics/config.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.modules) mkIf;
|
||||||
|
inherit (lib.nvim.dag) entryAnywhere;
|
||||||
|
inherit (lib.nvim.lua) toLuaObject;
|
||||||
|
|
||||||
|
cfg = config.vim.mini.basics;
|
||||||
|
in {
|
||||||
|
vim = mkIf cfg.enable {
|
||||||
|
startPlugins = ["mini-basics"];
|
||||||
|
|
||||||
|
pluginRC.mini-basics = entryAnywhere ''
|
||||||
|
require("mini.basics").setup(${toLuaObject cfg.setupOpts})
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
6
modules/plugins/mini/basics/default.nix
Normal file
6
modules/plugins/mini/basics/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./basics.nix
|
||||||
|
./config.nix
|
||||||
|
];
|
||||||
|
}
|
|
@ -4,5 +4,6 @@
|
||||||
./align
|
./align
|
||||||
./animate
|
./animate
|
||||||
# ./base16 # NOTE: configured in theme/
|
# ./base16 # NOTE: configured in theme/
|
||||||
|
./basics
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue