forked from trinitrix/core
1
0
Fork 0

fix(config/lua): Add a warning, that exiting with <C-c> is not supported

This commit is contained in:
Benedikt Peetz 2023-12-16 11:46:10 +01:00
parent 3da75f6913
commit 616cb4274f
Signed by: bpeetz
GPG Key ID: A5E94010C3A642AD
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,5 @@
-- create the required tables under `std` -- 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 --- 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. --- 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", "<TAB>", trinitrix.api.ui.cycle_planes)
trinitrix.std.keymaps.add("ni", "jj", function() print("hi") end) trinitrix.std.keymaps.add("ni", "jj", function() print("hi") end)
trinitrix.std.keymaps.add("n", "q", trinitrix.api.exit) trinitrix.std.keymaps.add("n", "q", trinitrix.api.exit)
-- Help people
trinitrix.std.keymaps.add("n", "<C-c>", function() print("To exit trinitrix use 'trinitrix.api.exit()' instead!") end)