home/src/normal.hh

32 lines
490 B
C++
Raw Normal View History

#ifndef normal_hh_INCLUDED
#define normal_hh_INCLUDED
#include "keys.hh"
#include <functional>
#include <unordered_map>
namespace Kakoune
{
class Context;
2013-12-15 20:41:32 +01:00
enum class InsertMode : unsigned
{
Insert,
Append,
Replace,
InsertAtLineBegin,
InsertAtNextLineBegin,
AppendAtLineEnd,
OpenLineBelow,
OpenLineAbove
};
using KeyMap = std::unordered_map<Key, std::function<void (Context& context, int param)>>;
extern KeyMap keymap;
}
#endif // normal_hh_INCLUDED