aboutsummaryrefslogtreecommitdiffstats
path: root/src/lush.h
diff options
context:
space:
mode:
authorGravatar BanceDev 2025-02-11 14:38:35 -0500
committerGravatar BanceDev 2025-02-11 14:38:35 -0500
commita1cdb80a68ed8821c2ed9f22f520cc4e6df8a626 (patch)
treeebe6869df98e954b9453f5d2c7b0f5aee18fa3a2 /src/lush.h
parentv0.3.0 (diff)
add api method to enable/disable inline suggestions
Diffstat (limited to '')
-rw-r--r--src/lush.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lush.h b/src/lush.h
index d067b36..9ca9722 100644
--- a/src/lush.h
+++ b/src/lush.h
@@ -19,6 +19,8 @@ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#define LUSH_H
#include <lua.h>
+#include <stdbool.h>
+
#define LUSH_LUA 5
// alias
@@ -53,6 +55,10 @@ int lush_execute_chain(lua_State *L, char ***commands, int num_commands);
void lush_format_prompt(const char *prompt_format);
+// enable for autocomplete text set in init.lua
+// initialized in the lua_api
+extern bool suggestion_enable;
+
// format spec for the prompt
extern char *prompt_format;