Commit b94600dc authored by teto's avatar teto
Browse files

neovim: add package.path only when necessary

I was trying to leverage `extraLuaPackages`  in HM and it was adding
empty lines
parent ffb80a01
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -122,10 +122,8 @@ let
          '';

        rcContent = lib.concatStringsSep "\n" (
          [
            luaPathLuaRc
            providerLuaRc
          ]
          lib.optional (extraLuaPackages lua.pkgs != [ ]) luaPathLuaRc
          ++ [ providerLuaRc ]
          ++ lib.optional (luaRcContent != "") luaRcContent
          ++ lib.optional (neovimRcContent' != "") ''
            vim.cmd.source "${writeText "init.vim" neovimRcContent'}"