diff options
author | pommicket <pommicket@gmail.com> | 2022-12-27 18:28:56 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-27 18:28:56 -0500 |
commit | e112a90ff73f7f407ed2251f905565713c237bc1 (patch) | |
tree | fd2cca33161c807cbbf8b29d9a49e778bee5aca8 /ted.h | |
parent | 1eaef3694d54d3d92f0b43304c72f5148b4e5db9 (diff) |
start signature help
Diffstat (limited to 'ted.h')
-rw-r--r-- | ted.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -417,6 +417,11 @@ typedef struct { Rect rect; // rectangle where the autocomplete menu is (needed to avoid interpreting autocomplete clicks as other clicks) } Autocomplete; +// "signature help" (LSP) is thing that shows the current parameter, etc. +typedef struct { + bool open; +} SignatureHelp; + typedef struct Ted { struct LSP *lsps[TED_LSP_MAX + 1]; @@ -463,6 +468,7 @@ typedef struct Ted { bool find; // is the find or find+replace menu open? bool replace; // is the find+replace menu open? bool find_regex, find_case_sensitive; // find options + SignatureHelp signature_help; u32 find_flags; // flags used last time search term was compiled pcre2_code *find_code; pcre2_match_data *find_match_data; @@ -542,6 +548,7 @@ Settings *ted_active_settings(Ted *ted); Settings *ted_get_settings(Ted *ted, const char *path, Language lang); void ted_load_configs(Ted *ted, bool reloading); struct LSP *ted_get_lsp(Ted *ted, const char *path, Language lang); +struct LSP *ted_active_lsp(Ted *ted); struct LSP *ted_get_lsp_by_id(Ted *ted, u32 id); static TextBuffer *find_search_buffer(Ted *ted); // first, we read all config files, then we parse them. |