summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-02 13:20:16 -0500
committerpommicket <pommicket@gmail.com>2023-01-02 13:20:16 -0500
commit1dc24e79ec7cf80e06b9c4e7cc55e18857b624c1 (patch)
tree9537660776906e08d5b4f511926bf4a1c8f4c644 /ted.h
parent9844c679b4a4fb42c97f80e5653dea7c73ff0edf (diff)
restructure LSP stuff
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/ted.h b/ted.h
index 21e421a..7c50ac2 100644
--- a/ted.h
+++ b/ted.h
@@ -778,6 +778,26 @@ Command command_from_str(const char *str);
const char *command_to_str(Command c);
void command_execute(Ted *ted, Command c, i64 argument);
+// === config.c ===
+// first, we read all config files, then we parse them.
+// this is because we want less specific settings (e.g. settings applied
+// to all languages instead of one particular language) to be applied first,
+// then more specific settings are based off of those.
+// EXAMPLE:
+// ---config file 1---
+// [Javascript.core]
+// syntax-highlighting = off
+// (inherits tab-width = 4)
+// [CSS.core]
+// tab-width = 2 (overrides tab-width = 4)
+// ---config file 2---
+// [core]
+// tab-width = 4
+void config_read(Ted *ted, ConfigPart **parts, const char *filename);
+void config_parse(Ted *ted, ConfigPart **pparts);
+void config_free(Ted *ted);
+char *settings_get_root_dir(Settings *settings, const char *path);
+
// === find.c ===
TextBuffer *find_search_buffer(Ted *ted);
float find_menu_height(Ted *ted);
@@ -890,6 +910,10 @@ void node_split(Ted *ted, Node *node, bool vertical);
void node_split_switch(Ted *ted);
void node_split_swap(Ted *ted);
+// === session.c ===
+void session_write(Ted *ted);
+void session_read(Ted *ted);
+
// === syntax.c ===
Language language_from_str(const char *str);
const char *language_to_str(Language language);
@@ -959,28 +983,4 @@ PopupOption popup_update(Ted *ted, u32 options);
void popup_render(Ted *ted, u32 options, const char *title, const char *body);
v2 checkbox_frame(Ted *ted, bool *value, const char *label, v2 pos);
-
-// first, we read all config files, then we parse them.
-// this is because we want less specific settings (e.g. settings applied
-// to all languages instead of one particular language) to be applied first,
-// then more specific settings are based off of those.
-// EXAMPLE:
-// ---config file 1---
-// [Javascript.core]
-// syntax-highlighting = off
-// (inherits tab-width = 4)
-// [CSS.core]
-// tab-width = 2 (overrides tab-width = 4)
-// ---config file 2---
-// [core]
-// tab-width = 4
-void config_read(Ted *ted, ConfigPart **parts, const char *filename);
-void config_parse(Ted *ted, ConfigPart **parts);
-void config_free(Ted *ted);
-char *settings_get_root_dir(Settings *settings, const char *path);
-void menu_open(Ted *ted, Menu menu);
-void menu_close(Ted *ted);
-void autocomplete_close(Ted *ted);
-void signature_help_retrigger(Ted *ted);
-
#endif