diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-12-07 09:54:22 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-12-07 09:54:22 +0100 |
| commit | 53a9172bddbb83a1c570cc3fed794e7b73c1f1d7 (patch) | |
| tree | 19640c3d641ba999734043a476fe6e43ea2e0b0d /src/state/view | |
| parent | 80c511045ab4248a88d260ed0be6649196ad4e68 (diff) | |
add default config
Diffstat (limited to 'src/state/view')
| -rw-r--r-- | src/state/view/mode.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/state/view/mode.rs b/src/state/view/mode.rs index 63e6e5b..c030197 100644 --- a/src/state/view/mode.rs +++ b/src/state/view/mode.rs @@ -5,7 +5,6 @@ pub enum Mode { #[default] Normal, Visual, - Insert, Command, } @@ -18,7 +17,6 @@ impl<'lua> FromLua<'lua> for Mode { match value.as_str().unwrap().to_lowercase().as_ref() { "normal" => Ok(Mode::Normal), "visual" => Ok(Mode::Visual), - "insert" => Ok(Mode::Insert), "command" => Ok(Mode::Command), _ => Err(mlua::Error::runtime( "mode needs to be 'normal', 'visual', 'insert' or 'command'", @@ -40,7 +38,6 @@ impl<'lua> IntoLua<'lua> for Mode { match self { Mode::Normal => "normal", Mode::Visual => "visual", - Mode::Insert => "insert", Mode::Command => "command", } .into_lua(lua) |