tani / vim-jetpack

The lightning-fast plugin manager, alternative to vim-plug

Home Page:https://gist.asciidoctor.org/?github-tani/vim-jetpack/main//README.adoc&source-highlighter=highlightjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add feature to install only new plugins without updating existing plugins

Matts966 opened this issue · comments

Thank you for this great artifact!
I moved from vim-plug today, and want a feature to install only new plugins.
This reduces the time to try new plugins.

commented

You can achieve it with below in lua.

vim.cmd('packadd vim-jetpack')
require'jetpack'.startup(function(use)
  local _use = function(x)
    if type(x) == "table" then
      x.frozen = x.frozen == nil and true or x.frozen
      return use(x)
    end
    return use({x, frozen = true})
  end

  _use { 'tani/vim-jetpack', opt = 1 } -- bootstrap
end

Thank you!