From d483b2a6c94b7e8caee77bacaeea5a6c4b31492e Mon Sep 17 00:00:00 2001 From: Aaron Dill Date: Mon, 4 Nov 2024 05:04:22 -0600 Subject: [PATCH] fix: don't include cwd in package.path --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index 56cef74..bec71be 100644 --- a/init.lua +++ b/init.lua @@ -8,6 +8,10 @@ if vim.fn.has("nvim-0.9.0") == 0 then return end +---Remove . from the package.path. This never does anything good. +package.path = package.path:gsub("^%./%?%.lua;", "") +package.cpath = package.cpath:gsub("^%./%?%.so;", "") + require("future") -- Fowards compatability do -- delay notifications till vim.notify was replaced or after 500ms