neovim: make lua dependencies appear earlier in init.lua
Some checks failed
/ triage (push) Has been cancelled
GitHub Pages / publish (ubuntu-latest) (push) Has been cancelled

We want t this to appear at the very beginning, before loading any other
plugin.
This commit is contained in:
teto 2026-02-01 20:51:24 +01:00 committed by Matthieu Coudron
parent b593765639
commit 984708c34d

View file

@ -502,12 +502,12 @@ in
in in
lib.mkMerge [ lib.mkMerge [
(lib.mkIf ( (lib.mkIf (resolvedExtraLuaPackages != [ ]) (
resolvedExtraLuaPackages != [ ] lib.mkOrder 100 ''
) ''package.path = "${generatedLuaPath}".. ";" .. package.path'') package.path = "${generatedLuaPath}".. ";" .. package.path
(lib.mkIf ( package.cpath = "${generatedLuaCPath}".. ";" .. package.cpath
resolvedExtraLuaPackages != [ ] ''
) ''package.cpath = "${generatedLuaCPath}".. ";" .. package.cpath'') ))
(lib.mkIf (advisedLua != null) (lib.mkOrder 510 advisedLua)) (lib.mkIf (advisedLua != null) (lib.mkOrder 510 advisedLua))
(lib.mkIf (wrappedNeovim'.initRc != "") ( (lib.mkIf (wrappedNeovim'.initRc != "") (
lib.mkBefore "vim.cmd [[source ${pkgs.writeText "nvim-init-home-manager.vim" wrappedNeovim'.initRc}]]" lib.mkBefore "vim.cmd [[source ${pkgs.writeText "nvim-init-home-manager.vim" wrappedNeovim'.initRc}]]"