diff --git a/dot_config/nvim/lua/plugins/lazy-patcher-nvim.lua b/dot_config/nvim/lua/plugins/lazy-patcher-nvim.lua deleted file mode 100644 index 5fb469c3..00000000 --- a/dot_config/nvim/lua/plugins/lazy-patcher-nvim.lua +++ /dev/null @@ -1,25 +0,0 @@ --- TODO: config it - ----@type table -local opts = { - -- Directory where lazy install the plugins - lazy_path = vim.fn.stdpath("data") .. "/lazy", - -- Directory where patch files are stored - patches_path = vim.fn.stdpath("config") .. "/patches", - update_patches = true, - apply_patches = true, - confirm_mass_changes = true, - print_logs = true, -} - ----@type LazySpec -local spec = { - "one-d-wide/lazy-patcher.nvim", - --lazy = false, - ft = "lazy", - opts = opts, - cond = false, - enabled = false, -} - -return spec diff --git a/dot_config/nvim/lua/plugins/lazy-patcher-nvim/init.lua b/dot_config/nvim/lua/plugins/lazy-patcher-nvim/init.lua new file mode 100644 index 00000000..c391aeaf --- /dev/null +++ b/dot_config/nvim/lua/plugins/lazy-patcher-nvim/init.lua @@ -0,0 +1,11 @@ +---@type LazySpec +local spec = { + "one-d-wide/lazy-patcher.nvim", + --lazy = false, + ft = "lazy", + opts = require("plugins.lazy-patcher-nvim.opts"), + cond = false, + enabled = false, +} + +return spec diff --git a/dot_config/nvim/lua/plugins/lazy-patcher-nvim/opts.lua b/dot_config/nvim/lua/plugins/lazy-patcher-nvim/opts.lua new file mode 100644 index 00000000..611a1f07 --- /dev/null +++ b/dot_config/nvim/lua/plugins/lazy-patcher-nvim/opts.lua @@ -0,0 +1,16 @@ +local global = require("config.global") + +---@type string +local path_sep = global.path_sep + +---@type table +local opts = { + lazy_path = table.concat({ global.data_dir, "lazy" }, path_sep), + patches_path = table.concat({ global.vim_path, "patches" }, path_sep), + update_patches = true, + apply_patches = true, + confirm_mass_changes = true, + print_logs = true, +} + +return opts