From 616cb4274ff20000ee7cb01c60f480faa1e27141 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 16 Dec 2023 11:46:10 +0100 Subject: [PATCH] fix(config/lua): Add a warning, that exiting with is not supported --- config/lua/init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)