This repository has been archived by the owner on Nov 12, 2022. It is now read-only.
Script to update all installed servers #749
Unanswered
tinny-blueleo
asked this question in
Q&A
Replies: 3 comments 2 replies
-
can u share ur packer script? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Sure it's:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello! With https://github.com/williamboman/mason.nvim (which will succeed nvim-lsp-installer soon) this is pretty straight forward: local mason_registry = require("mason-registry")
for _, pkg in ipairs(mason_registry.get_installed_packages()) do
pkg:check_new_version(function (success, new_version)
if success then
-- Optionally do some logic based on `new_version`
-- (which is a table { name: string, current_version: string, latest_version: string })
pkg:install()
end
end)
end |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi friends! I have a Packer script to keep my plugins up to date and wanted to bundle in a call to lua to make sure all of my installed LSP servers were updated (similar to picking 'U' in the LSP installer menus). Is there a function or command I can call to accomplish this the right way? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions