feat: remove broken DepsUpdateSnapSave
This commit is contained in:
parent
60aac51afc
commit
6417e12234
|
@ -17,26 +17,6 @@ end
|
||||||
-- set up 'mini.deps' immediately to have its `now()` and `later()` helpers
|
-- set up 'mini.deps' immediately to have its `now()` and `later()` helpers
|
||||||
require("mini.deps").setup()
|
require("mini.deps").setup()
|
||||||
|
|
||||||
-- also setup this user command to always save a new lockfile after update
|
|
||||||
vim.api.nvim_create_user_command("DepsUpdateSnapSave", function(opts)
|
|
||||||
local name = opts.args ~= "" and opts.args or nil
|
|
||||||
MiniDeps.update(name)
|
|
||||||
MiniDeps.snap_save()
|
|
||||||
end, {
|
|
||||||
desc = "Update MiniDeps plugins and save snapshot",
|
|
||||||
nargs = "?",
|
|
||||||
complete = function(arg, _, _)
|
|
||||||
local session_names = vim.tbl_map(
|
|
||||||
function(s) return s.name end,
|
|
||||||
MiniDeps.get_session()
|
|
||||||
)
|
|
||||||
return vim.tbl_filter(
|
|
||||||
function(n) return vim.startswith(n, arg) end,
|
|
||||||
session_names
|
|
||||||
)
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- define main config table to be able to use it in scripts
|
-- define main config table to be able to use it in scripts
|
||||||
_G.Config = {}
|
_G.Config = {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue