summaryrefslogtreecommitdiff
path: root/src/normal.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-07-08 20:25:09 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-07-10 19:22:14 +0100
commitb6979e2d2cb1fe60e94beec0075ed55a26069595 (patch)
tree81f7a55b28886b299b56cf797e2c059a93acc7cc /src/normal.hh
parent4c3bd68876841ad9547f1d270c36a78d5a68cfed (diff)
Add docstring for normal mode commands and display them if autoinfo >= 2
Diffstat (limited to 'src/normal.hh')
-rw-r--r--src/normal.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/normal.hh b/src/normal.hh
index c35027ce..afd8840c 100644
--- a/src/normal.hh
+++ b/src/normal.hh
@@ -11,7 +11,13 @@ namespace Kakoune
class Context;
-using KeyMap = std::unordered_map<Key, std::function<void (Context& context, int param)>>;
+struct NormalCmdDesc
+{
+ const char* docstring;
+ std::function<void (Context& context, int param)> func;
+};
+
+using KeyMap = std::unordered_map<Key, NormalCmdDesc>;
extern KeyMap keymap;
}