summaryrefslogtreecommitdiff
path: root/src/normal.hh
blob: afd8840c8397f3c0ad91bcab65632bfb6d70cf58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef normal_hh_INCLUDED
#define normal_hh_INCLUDED

#include "keys.hh"

#include <functional>
#include <unordered_map>

namespace Kakoune
{

class Context;

struct NormalCmdDesc
{
    const char* docstring;
    std::function<void (Context& context, int param)> func;
};

using KeyMap = std::unordered_map<Key, NormalCmdDesc>;
extern KeyMap keymap;

}

#endif // normal_hh_INCLUDED