mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 15:34:53 +01:00
chore: bindings for TextEdit::apply
This commit is contained in:
parent
592837c664
commit
85079c0330
1 changed files with 2 additions and 1 deletions
|
@ -177,6 +177,7 @@ impl LuaUserData for LuaTextChange {
|
|||
}))
|
||||
});
|
||||
methods.add_meta_method(LuaMetaMethod::ToString, |_, this, ()| Ok(format!("{:?}", this.0)));
|
||||
methods.add_method("apply", |_, this, (txt,):(String,)| Ok(this.0.apply(&txt)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue