diff --git a/mzte-nv/conf/lua/pluginconf/p-neogit.fnl b/mzte-nv/conf/lua/pluginconf/p-neogit.fnl index 84a9b47..e409a86 100644 --- a/mzte-nv/conf/lua/pluginconf/p-neogit.fnl +++ b/mzte-nv/conf/lua/pluginconf/p-neogit.fnl @@ -2,4 +2,4 @@ (ngit.setup {}) -(vim.api.nvim_create_user_command :Neogit ngit.open {:nargs 0}) +(vim.api.nvim_create_user_command :Neog ngit.open {:nargs 0}) diff --git a/mzte-nv/src/ffi.zig b/mzte-nv/src/ffi.zig index 45469cf..4523481 100644 --- a/mzte-nv/src/ffi.zig +++ b/mzte-nv/src/ffi.zig @@ -7,7 +7,8 @@ pub const c = @cImport({ }); /// Generates a wrapper function with error handling for a lua CFunction -pub fn luaFunc(comptime func: fn (*c.lua_State) anyerror!c_int) c.lua_CFunction { +/// func should be `fn(*c.lua_State) !c_int` () +pub fn luaFunc(comptime func: anytype) c.lua_CFunction { return &struct { fn f(l: ?*c.lua_State) callconv(.C) c_int { return func(l.?) catch |e| {