From a1cdb80a68ed8821c2ed9f22f520cc4e6df8a626 Mon Sep 17 00:00:00 2001 From: BanceDev Date: Tue, 11 Feb 2025 14:38:35 -0500 Subject: add api method to enable/disable inline suggestions --- src/lush.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lush.h') 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 +#include + #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; -- cgit v1.2.3-59-g8ed1b