nvim-api 0.2.0

Neovim API bindings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use nvim_types::Object;
use serde::Deserialize;

#[non_exhaustive]
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash, Deserialize)]
#[serde(rename_all = "lowercase")]
pub enum WindowStyle {
    Minimal,
}

impl From<WindowStyle> for Object {
    fn from(style: WindowStyle) -> Self {
        use WindowStyle::*;
        Self::from(match style {
            Minimal => "minimal",
        })
    }
}