How do I use mini.deps instead of cloning the entire mini.nvim repository. #1175
-
-- MiniDeps auto download and configure setup
local path_package = vim.fn.stdpath("data") .. "/site/"
local mini_path = path_package .. "pack/deps/start/mini.deps"
if not vim.uv.fs_stat(mini_path) then
vim.cmd('echo "Installing `mini.deps`" | redraw')
local clone_cmd = {
"git",
"clone",
"--filter=blob:none",
"https://github.com/echasnovski/mini.deps",
mini_path,
}
vim.fn.system(clone_cmd)
vim.cmd('echo "Installed `mini.deps`" | redraw')
vim.cmd("packadd mini.deps | helptags ALL")
end
require("mini.deps").setup({ path = { package = path_package } })
-- add, now and later functions from MiniDeps
local add, now, later = MiniDeps.add, MiniDeps.now, MiniDeps.later Is this the right way to use mini.deps without cloning entire mini.nvim or am I getting something wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
echasnovski
Aug 25, 2024
Replies: 1 comment 4 replies
-
Replacing 'mini.nvim' with 'mini.deps' in the initial portion of the example 'init.lua' should be enough. Which seems what is done here. Do you have actual problems with this setup? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am not sure what this is about. I tried
:DepsUpdate
several times after several restarts with the following 'init.lua' and everything worked as expected: