File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ pub fn destroy_db(_: &Lua, _: ()) -> LuaResult<bool> {
41
41
Ok ( true )
42
42
}
43
43
44
- pub fn access ( _: & Lua , item : LspItem ) -> LuaResult < bool > {
44
+ pub fn access ( _: & Lua , item : LuaTable ) -> LuaResult < bool > {
45
+ let item: LspItem = item. into ( ) ;
45
46
let mut frecency_handle = FRECENCY . write ( ) . map_err ( |_| {
46
47
mlua:: Error :: RuntimeError ( "Failed to acquire lock for frecency" . to_string ( ) )
47
48
} ) ?;
@@ -94,6 +95,6 @@ fn blink_cmp_fuzzy(lua: &Lua) -> LuaResult<LuaTable> {
94
95
exports. set ( "get_words" , lua. create_function ( get_words) ?) ?;
95
96
exports. set ( "init_db" , lua. create_function ( init_db) ?) ?;
96
97
exports. set ( "destroy_db" , lua. create_function ( destroy_db) ?) ?;
97
- // exports.set("access", lua.create_function(access)?)?;
98
+ exports. set ( "access" , lua. create_function ( access) ?) ?;
98
99
Ok ( exports)
99
100
}
You can’t perform that action at this time.
0 commit comments