diff options
| author | 2025-02-11 14:38:35 -0500 | |
|---|---|---|
| committer | 2025-02-11 14:38:35 -0500 | |
| commit | a1cdb80a68ed8821c2ed9f22f520cc4e6df8a626 (patch) | |
| tree | ebe6869df98e954b9453f5d2c7b0f5aee18fa3a2 /src/lush.h | |
| parent | v0.3.0 (diff) | |
add api method to enable/disable inline suggestions
Diffstat (limited to '')
| -rw-r--r-- | src/lush.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |
