tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
neovim: Make it possible to configure using Lua
polyfloyd
9 months ago
24df1ab4
fa0c8e3d
+7
-1
2 changed files
expand all
collapse all
unified
split
nixos
modules
programs
neovim.nix
pkgs
applications
editors
neovim
utils.nix
+4
-1
nixos/modules/programs/neovim.nix
reviewed
···
73
73
example = lib.literalExpression ''
74
74
{
75
75
customRC = '''
76
76
-
" here your custom configuration goes!
76
76
+
" here your custom VimScript configuration goes!
77
77
+
''';
78
78
+
customLuaRC = '''
79
79
+
-- here your custom Lua configuration goes!
77
80
''';
78
81
packages.myVimPackage = with pkgs.vimPlugins; {
79
82
# loaded on launch
+3
pkgs/applications/editors/neovim/utils.nix
reviewed
···
73
73
makeNeovimConfig =
74
74
{
75
75
customRC ? "",
76
76
+
customLuaRC ? "",
76
77
# the function you would have passed to lua.withPackages
77
78
extraLuaPackages ? (_: [ ]),
78
79
...
···
83
84
attrs
84
85
// {
85
86
neovimRcContent = customRC;
87
87
+
luaRcContent = customLuaRC;
86
88
wrapperArgs = lib.optionals (luaEnv != null) [
87
89
"--prefix"
88
90
"LUA_PATH"
···
145
147
vimAlias
146
148
;
147
149
customRC = configure.customRC or "";
150
150
+
customLuaRC = configure.customLuaRC or "";
148
151
inherit plugins;
149
152
inherit extraName;
150
153
};