lol

neovim: Make it possible to configure using Lua

polyfloyd 24df1ab4 fa0c8e3d

+7 -1
+4 -1
nixos/modules/programs/neovim.nix
··· 73 73 example = lib.literalExpression '' 74 74 { 75 75 customRC = ''' 76 - " here your custom configuration goes! 76 + " here your custom VimScript configuration goes! 77 + '''; 78 + customLuaRC = ''' 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
··· 73 73 makeNeovimConfig = 74 74 { 75 75 customRC ? "", 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 + 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 + customLuaRC = configure.customLuaRC or ""; 148 151 inherit plugins; 149 152 inherit extraName; 150 153 };