[IMP] Add server version management and auto download#6
Conversation
f95a260 to
46b92ca
Compare
|
That's a nice addition to the neovim plugin ! |
I could setup a config parameter for the version where the user can input the specific version number they want, which defaults to latest (stable). And setting it to 'nigthly' could could just get the last version from https://api.github.com/repos/odoo/odoo-ls/releases |
Removed the lsp and refactored the config into a lua plugin with modules which configures and enables the lsp on `setup()`. The lua modules handle fetching the latest version from the github repo, checking whether there is a newer version than the one installed and expose an :OdooLsInstall function for users to install the newest ls server on demand. The module can be configured to either get the latest stable version from github, the latest version including prereleases, or fixed to a specific version tag
Removed the lsp and refactored the config into a lua plugin with
modules which configures and enables the lsp on
setup().The lua modules handle fetching the latest version from the github
repo, checking whether there is a newer version than the one installed
and expose an :OdooLsInstall function for users to install the newest
ls server on demand.
The module can be configured to either get the latest stable version
from github, the latest version including prereleases, or fixed to a
specific version tag