From fe421a45846dcfa192133343f70fc662785eb392 Mon Sep 17 00:00:00 2001 From: S1M0N38 Date: Sun, 11 Feb 2024 14:10:31 +0100 Subject: [PATCH] fix(config): search for love2d library based on runtimepath --- lua/love2d/config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/love2d/config.lua b/lua/love2d/config.lua index e4e3fe7..c50e96a 100644 --- a/lua/love2d/config.lua +++ b/lua/love2d/config.lua @@ -2,7 +2,7 @@ local config = {} config.defaults = { path_to_love = "love", - path_to_love_library = vim.fn.expand("%:p:h:h:h") .. "/love2d/library", + path_to_love_library = vim.fn.globpath(vim.o.runtimepath, "love2d/library"), } ---@class options