diff --git a/nvim/lua/lib/marleyvim/init.lua b/nvim/lua/lib/marleyvim/init.lua deleted file mode 100644 index 2bf596b..0000000 --- a/nvim/lua/lib/marleyvim/init.lua +++ /dev/null @@ -1,11 +0,0 @@ -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 diff --git a/nvim/lua/plugins/colorscheme/init.lua b/nvim/lua/plugins/colorscheme/init.lua index 59ec20a..e102eb7 100644 --- a/nvim/lua/plugins/colorscheme/init.lua +++ b/nvim/lua/plugins/colorscheme/init.lua @@ -1,4 +1,4 @@ -local req = require('lib.marleyvim').localRequire('plugins.colorscheme') +local req = MarleyVim.local_require('plugins.colorscheme') return { req('rose-pine'), diff --git a/nvim/lua/plugins/editor/init.lua b/nvim/lua/plugins/editor/init.lua index 530d37a..1b9058f 100644 --- a/nvim/lua/plugins/editor/init.lua +++ b/nvim/lua/plugins/editor/init.lua @@ -1,4 +1,4 @@ -local req = require('lib.marleyvim').localRequire('plugins.editor') +local req = MarleyVim.local_require('plugins.editor') return { req('neo-tree-nvim'), diff --git a/nvim/lua/plugins/ui/init.lua b/nvim/lua/plugins/ui/init.lua index 8ae3a63..9e337de 100644 --- a/nvim/lua/plugins/ui/init.lua +++ b/nvim/lua/plugins/ui/init.lua @@ -1,4 +1,4 @@ -local req = require('lib.marleyvim').localRequire('plugins.ui') +local req = MarleyVim.local_require('plugins.ui') return { req('alpha-nvim'), diff --git a/nvim/lua/plugins/util/init.lua b/nvim/lua/plugins/util/init.lua index 892751c..7e4d18c 100644 --- a/nvim/lua/plugins/util/init.lua +++ b/nvim/lua/plugins/util/init.lua @@ -1,4 +1,4 @@ -local req = require('lib.marleyvim').localRequire('plugins.util') +local req = MarleyVim.local_require('plugins.util') return { req('nui-nvim'),