diff --git a/config/lua/init.lua b/config/lua/init.lua index 54b93e7..d899a74 100644 --- a/config/lua/init.lua +++ b/config/lua/init.lua @@ -1,5 +1,5 @@ -- create the required tables under `std` -trinitrix.std = {keymaps = {}}; +trinitrix.std = { keymaps = {} }; --- Add a new keymap. This is just a convenience function which registers the function --- and at the same time deals with the fact that the whole trinitrix api is async. @@ -28,3 +28,7 @@ trinitrix.std.keymaps.add("n", "", trinitrix.api.ui.cycle_planes) trinitrix.std.keymaps.add("ni", "jj", function() print("hi") end) trinitrix.std.keymaps.add("n", "q", trinitrix.api.exit) + + +-- Help people +trinitrix.std.keymaps.add("n", "", function() print("To exit trinitrix use 'trinitrix.api.exit()' instead!") end)