summaryrefslogtreecommitdiff
path: root/src/input_handler.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-07-15 09:45:17 +1000
committerMaxime Coste <mawww@kakoune.org>2018-07-15 11:10:32 +1000
commitbde726d0342f32ff2e9cb464a351450a43ecea9f (patch)
treefc6164f391f8232fe8c92a0792f14aa97ac400fe /src/input_handler.hh
parent58c7b06e1d9e8a9e0cb12aace972b7d9119b7863 (diff)
Change autoshowcompl to auto_complete with insert|prompt possible values
Diffstat (limited to 'src/input_handler.hh')
-rw-r--r--src/input_handler.hh16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh
index d5c9f7b4..600d78b8 100644
--- a/src/input_handler.hh
+++ b/src/input_handler.hh
@@ -152,6 +152,22 @@ constexpr auto enum_desc(Meta::Type<AutoInfo>)
});
}
+enum class AutoComplete
+{
+ None = 0,
+ Insert = 0b01,
+ Prompt = 0b10
+};
+constexpr bool with_bit_ops(Meta::Type<AutoComplete>) { return true; }
+
+constexpr auto enum_desc(Meta::Type<AutoComplete>)
+{
+ return make_array<EnumDesc<AutoComplete>, 3>({
+ { AutoComplete::Insert, "insert"},
+ { AutoComplete::Prompt, "prompt" }
+ });
+}
+
bool show_auto_info_ifn(StringView title, StringView info, AutoInfo mask, const Context& context);
void hide_auto_info_ifn(const Context& context, bool hide);