neovim: make lua dependencies appear earlier in init.lua
We want t this to appear at the very beginning, before loading any other plugin.
This commit is contained in:
parent
b593765639
commit
984708c34d
1 changed files with 6 additions and 6 deletions
|
|
@ -502,12 +502,12 @@ in
|
|||
in
|
||||
|
||||
lib.mkMerge [
|
||||
(lib.mkIf (
|
||||
resolvedExtraLuaPackages != [ ]
|
||||
) ''package.path = "${generatedLuaPath}".. ";" .. package.path'')
|
||||
(lib.mkIf (
|
||||
resolvedExtraLuaPackages != [ ]
|
||||
) ''package.cpath = "${generatedLuaCPath}".. ";" .. package.cpath'')
|
||||
(lib.mkIf (resolvedExtraLuaPackages != [ ]) (
|
||||
lib.mkOrder 100 ''
|
||||
package.path = "${generatedLuaPath}".. ";" .. package.path
|
||||
package.cpath = "${generatedLuaCPath}".. ";" .. package.cpath
|
||||
''
|
||||
))
|
||||
(lib.mkIf (advisedLua != null) (lib.mkOrder 510 advisedLua))
|
||||
(lib.mkIf (wrappedNeovim'.initRc != "") (
|
||||
lib.mkBefore "vim.cmd [[source ${pkgs.writeText "nvim-init-home-manager.vim" wrappedNeovim'.initRc}]]"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue