Skip to content

How to install a specific revision of a package. #880

Answered by williamboman
madelaney asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! You can specify a version when installing a package, like so:

  • via the command interface: :MasonInstall package@v1.0.0
  • via the Lua API: pkg:install { version = "v1.0.0" }

mason-lspconfig also supports specifying versions in the ensure_installed table:

require("mason-lspconfig").setup {
  ensure_installed = { "package@v1.0.0" }
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@madelaney
Comment options

@Drew-Daniels
Comment options

@srgsanky
Comment options

Answer selected by madelaney
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants