From 984708c34d3495a518e6ab6b8633469bbca2f77a Mon Sep 17 00:00:00 2001 From: teto <886074+teto@users.noreply.github.com> Date: Sun, 1 Feb 2026 20:51:24 +0100 Subject: [PATCH] neovim: make lua dependencies appear earlier in init.lua We want t this to appear at the very beginning, before loading any other plugin. --- modules/programs/neovim.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/programs/neovim.nix b/modules/programs/neovim.nix index 8af5fedf..cbfca510 100644 --- a/modules/programs/neovim.nix +++ b/modules/programs/neovim.nix @@ -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}]]"