From 269f42273129fcfbaf67e157d8784666e0c65c9c Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Tue, 10 Nov 2020 11:06:53 -0500 Subject: Fill `keys` and `snippet` tables with language-specific tables on init. This allows users and language modules to easily add bindings and snippets without stepping on each other. --- core/._M.luadoc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'core/._M.luadoc') diff --git a/core/._M.luadoc b/core/._M.luadoc index db7211f7..8f94a93d 100644 --- a/core/._M.luadoc +++ b/core/._M.luadoc @@ -99,13 +99,11 @@ -- and insert a new line. This command could be bound to the `Shift+Enter` (`⇧↩` -- on macOS | `S-Enter` in the terminal version) key for easy access: -- --- keys.cpp = { --- ['s\n'] = function() --- buffer:line_end() --- buffer:add_text(';') --- buffer:new_line() --- end --- } +-- keys.cpp['shift+\n'] = function() +-- buffer:line_end() +-- buffer:add_text(';') +-- buffer:new_line() +-- end -- -- When defining key bindings for other commands, you may make use of a `Ctrl+L` -- (`⌘L` on macOS | `M-L` in the terminal version) keychain. Traditionally this -- cgit v1.2.3