💅 remove Option from all api functions

This commit is contained in:
noib3 2022-10-02 01:48:23 +02:00
parent ceb753aef3
commit d67a61dbae
No known key found for this signature in database
GPG key ID: 7AF92216C504A017
13 changed files with 103 additions and 90 deletions

View file

@ -17,10 +17,10 @@ fn api() -> oxi::Result<Dictionary> {
Ok(())
};
api::create_user_command("Greetings", greetings, Some(&opts))?;
api::create_user_command("Greetings", greetings, &opts)?;
// Remaps `hi` to `hello` in insert mode.
api::set_keymap(Mode::Insert, "hi", "hello", None)?;
api::set_keymap(Mode::Insert, "hi", "hello", &Default::default())?;
// Creates two functions `{open,close}_window` to open and close a
// floating window.