mirror of
https://github.com/noib3/nvim-oxi.git
synced 2025-08-04 19:08:31 +00:00
💅 remove Option
from all api
functions
This commit is contained in:
parent
ceb753aef3
commit
d67a61dbae
13 changed files with 103 additions and 90 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue