From 12f64b02e9846e7a843ae0f0ae60cbeae1889c3e Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sun, 1 Dec 2024 11:20:02 -0800 Subject: [PATCH] feat: Finish library migration --- nvim/lua/lib/marleyvim/init.lua | 11 ----------- nvim/lua/plugins/colorscheme/init.lua | 2 +- nvim/lua/plugins/editor/init.lua | 2 +- nvim/lua/plugins/ui/init.lua | 2 +- nvim/lua/plugins/util/init.lua | 2 +- 5 files changed, 4 insertions(+), 15 deletions(-) delete mode 100644 nvim/lua/lib/marleyvim/init.lua 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'),