From 5c1280f3754146f5b331fbe261037b580d3023f5 Mon Sep 17 00:00:00 2001 From: Pei Yang Ching <59727193+horriblename@users.noreply.github.com> Date: Mon, 29 Jul 2024 11:36:08 +0200 Subject: [PATCH] wrapper: fix additionalRuntimePaths lua script --- modules/wrapper/rc/options.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/wrapper/rc/options.nix b/modules/wrapper/rc/options.nix index 0594a484..4165da6d 100644 --- a/modules/wrapper/rc/options.nix +++ b/modules/wrapper/rc/options.nix @@ -155,11 +155,7 @@ in { -- The following list is generated from `vim.additionalRuntimePaths` -- and is used to append additional runtime paths to the -- `runtimepath` option. - local additionalRuntimePaths = ${listToLuaTable cfg.additionalRuntimePaths}; - - for _, path in ipairs(additionalRuntimePaths) do - vim.opt.runtimepath:append(path) - end + vim.opt.runtimepath:append(${listToLuaTable cfg.additionalRuntimePaths}) ''} ${optionalString cfg.disableDefaultRuntimePaths ''