vim-lsp-settings
vim-lsp-settings copied to clipboard
auto download from the latest release
Seems like every few weeks I seem to be sending PRs to update rust-analyzer. would be good if we can automate this.
Might be directly make a call to https://api.github.com/repos/rust-analyzer/rust-analyzer/releases and then find the last release and then use that version.
might need something like
let releases = GetGithubRelease('rust-analyzer/rust-analyzer')
let download_url = release[0].linux
I think that the method of acquiring the download URL will be the first existing target other than nightly.
How to store the current version, create a local file and write meta information ?, eg id.
I want interval check to reduce server load.
sent an example PR for rust-analyzer that works for linux/mac. Someone would need to add support for windows.
https://github.com/mattn/vim-lsp-settings/pull/392
One option is to use https://github.com/renovatebot/renovate/.
Renovate is quite advance and is able to lookup releases using various sources (npmjs, github releases, etc.)