diff --git a/nvim/lua/lib/marleyvim/init.lua b/nvim/lua/lib/marleyvim/init.lua new file mode 100644 index 0000000..2bf596b --- /dev/null +++ b/nvim/lua/lib/marleyvim/init.lua @@ -0,0 +1,11 @@ +local M = {} + +---@param prefix string The string to prefix to all req calls. +function M.localRequire(prefix) + ---@param mod string The module to require. + return function(mod) + return require(prefix .. '.' .. mod) + end +end + +return M