From 59633121bdc7fe76f78c16ea99289ed9aab65253 Mon Sep 17 00:00:00 2001 From: Birdee <85372418+BirdeeHub@users.noreply.github.com> Date: Wed, 13 May 2026 06:48:20 -0700 Subject: [PATCH] neovimUtils.buildNeovimPlugin: fix lua c modules neovim expects c modules to also be in the lua directory. --- .../editors/neovim/build-neovim-plugin.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/editors/neovim/build-neovim-plugin.nix b/pkgs/applications/editors/neovim/build-neovim-plugin.nix index 09be43bdf14f..4ed1b6badb73 100644 --- a/pkgs/applications/editors/neovim/build-neovim-plugin.nix +++ b/pkgs/applications/editors/neovim/build-neovim-plugin.nix @@ -28,11 +28,12 @@ let version = attrs.version or old.version; __intentionallyOverridingVersion = true; rockspecVersion = old.rockspecVersion; - - extraConfig = '' - -- to create a flat hierarchy - lua_modules_path = "lua" - ''; + luarocksConfig = (old.luarocksConfig or { }) // { + # to create a flat hierarchy + lua_modules_path = "lua"; + # neovim expects C modules to also be in the lua directory + lib_modules_path = "lua"; + }; }); finalDrv = toVimPlugin (