mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-01 19:11:15 +00:00
wrapper: optionally wrap neovim with extra lua packages
This commit is contained in:
parent
054ade0075
commit
35143b7dda
2 changed files with 12 additions and 0 deletions
|
@ -209,6 +209,14 @@ in {
|
||||||
}'';
|
}'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
luaPackages = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
default = [];
|
||||||
|
description = ''
|
||||||
|
List of lua packages to install.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
globals = mkOption {
|
globals = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
description = "Set containing global variable values";
|
description = "Set containing global variable values";
|
||||||
|
|
|
@ -23,6 +23,8 @@ inputs: {
|
||||||
|
|
||||||
vimOptions = module.config.vim;
|
vimOptions = module.config.vim;
|
||||||
|
|
||||||
|
extraLuaPackages = ps: map (x: ps.${x}) vimOptions.luaPackages;
|
||||||
|
|
||||||
buildPlug = {pname, ...} @ args:
|
buildPlug = {pname, ...} @ args:
|
||||||
assert lib.asserts.assertMsg (pname != "nvim-treesitter") "Use buildTreesitterPlug for building nvim-treesitter.";
|
assert lib.asserts.assertMsg (pname != "nvim-treesitter") "Use buildTreesitterPlug for building nvim-treesitter.";
|
||||||
buildVimPlugin (args
|
buildVimPlugin (args
|
||||||
|
@ -59,6 +61,8 @@ inputs: {
|
||||||
inherit (vimOptions) viAlias;
|
inherit (vimOptions) viAlias;
|
||||||
inherit (vimOptions) vimAlias;
|
inherit (vimOptions) vimAlias;
|
||||||
|
|
||||||
|
inherit extraLuaPackages;
|
||||||
|
|
||||||
configure = {
|
configure = {
|
||||||
customRC = vimOptions.builtConfigRC;
|
customRC = vimOptions.builtConfigRC;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue