neovim: Make it possible to configure using Lua
This commit is contained in:
parent
fa0c8e3d73
commit
24df1ab44a
@ -73,7 +73,10 @@ in
|
|||||||
example = lib.literalExpression ''
|
example = lib.literalExpression ''
|
||||||
{
|
{
|
||||||
customRC = '''
|
customRC = '''
|
||||||
" here your custom configuration goes!
|
" here your custom VimScript configuration goes!
|
||||||
|
''';
|
||||||
|
customLuaRC = '''
|
||||||
|
-- here your custom Lua configuration goes!
|
||||||
''';
|
''';
|
||||||
packages.myVimPackage = with pkgs.vimPlugins; {
|
packages.myVimPackage = with pkgs.vimPlugins; {
|
||||||
# loaded on launch
|
# loaded on launch
|
||||||
|
|||||||
@ -73,6 +73,7 @@ let
|
|||||||
makeNeovimConfig =
|
makeNeovimConfig =
|
||||||
{
|
{
|
||||||
customRC ? "",
|
customRC ? "",
|
||||||
|
customLuaRC ? "",
|
||||||
# the function you would have passed to lua.withPackages
|
# the function you would have passed to lua.withPackages
|
||||||
extraLuaPackages ? (_: [ ]),
|
extraLuaPackages ? (_: [ ]),
|
||||||
...
|
...
|
||||||
@ -83,6 +84,7 @@ let
|
|||||||
attrs
|
attrs
|
||||||
// {
|
// {
|
||||||
neovimRcContent = customRC;
|
neovimRcContent = customRC;
|
||||||
|
luaRcContent = customLuaRC;
|
||||||
wrapperArgs = lib.optionals (luaEnv != null) [
|
wrapperArgs = lib.optionals (luaEnv != null) [
|
||||||
"--prefix"
|
"--prefix"
|
||||||
"LUA_PATH"
|
"LUA_PATH"
|
||||||
@ -145,6 +147,7 @@ let
|
|||||||
vimAlias
|
vimAlias
|
||||||
;
|
;
|
||||||
customRC = configure.customRC or "";
|
customRC = configure.customRC or "";
|
||||||
|
customLuaRC = configure.customLuaRC or "";
|
||||||
inherit plugins;
|
inherit plugins;
|
||||||
inherit extraName;
|
inherit extraName;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user