use cargo version string to register neovide channel (#1161)

macos-click-through
Nguyễn Anh Khoa 3 years ago committed by GitHub
parent 8542333c94
commit f0a9e1c20d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -26,8 +26,8 @@ pub async fn setup_neovide_specific_state(nvim: &Neovim<TxWrapper>) {
nvim.set_client_info(
"neovide",
vec![
(Value::from("major"), Value::from(0u64)),
(Value::from("minor"), Value::from(6u64)),
(Value::from("major"), Value::from(env!("CARGO_PKG_VERSION_MAJOR"))),
(Value::from("minor"), Value::from(env!("CARGO_PKG_VERSION_MINOR"))),
],
"ui",
vec![],

Loading…
Cancel
Save