diff options
author | mitchell <70453897+orbitalquark@users.noreply.github.com> | 2020-11-10 11:06:53 -0500 |
---|---|---|
committer | mitchell <70453897+orbitalquark@users.noreply.github.com> | 2020-11-10 11:06:53 -0500 |
commit | 269f42273129fcfbaf67e157d8784666e0c65c9c (patch) | |
tree | 4e5e9c7568edd3834f0585f40bcf609a68ef561e /core/._M.luadoc | |
parent | 87a11d65ee576d965bcf432e878f191512e46bdd (diff) |
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.
Diffstat (limited to 'core/._M.luadoc')
-rw-r--r-- | core/._M.luadoc | 12 |
1 files changed, 5 insertions, 7 deletions
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 |