Merge pull request #227 from FrothyMarrow/lua-packages

wrapper: provide option to wrap neovim with extra lua packages
This commit is contained in:
NotAShelf 2024-02-17 23:50:05 +00:00 committed by GitHub
commit f7bd0fff01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 0 deletions

View file

@ -48,3 +48,7 @@ Release notes for release 0.6
[elijahimmer](https://github.com/elijahimmer)
- Added rose-pine theme
[frothymarrow](https://github.com/frothymarrow)
- Added option `vim.luaPackages` to wrap neovim with extra Lua packages.

View file

@ -209,6 +209,14 @@ in {
}'';
};
luaPackages = mkOption {
type = types.listOf types.str;
default = [];
description = ''
List of lua packages to install.
'';
};
globals = mkOption {
default = {};
description = "Set containing global variable values";

View file

@ -23,6 +23,8 @@ inputs: {
vimOptions = module.config.vim;
extraLuaPackages = ps: map (x: ps.${x}) vimOptions.luaPackages;
buildPlug = {pname, ...} @ args:
assert lib.asserts.assertMsg (pname != "nvim-treesitter") "Use buildTreesitterPlug for building nvim-treesitter.";
buildVimPlugin (args
@ -59,6 +61,8 @@ inputs: {
inherit (vimOptions) viAlias;
inherit (vimOptions) vimAlias;
inherit extraLuaPackages;
configure = {
customRC = vimOptions.builtConfigRC;