summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-09-08 22:59:47 -0400
committerpommicket <pommicket@gmail.com>2023-09-08 22:59:47 -0400
commit0dcfd5a4f1fd865c24c01b17b214e1f72e4c06fe (patch)
treed693d70a57713cf4dbe48d30159100bab279c77d /ted.h
parentf86b0aa1e843646056c08a91fcc759aa0d8a57ba (diff)
LSP code formatting (not entirely working yet)
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/ted.h b/ted.h
index b1c8950..984ab70 100644
--- a/ted.h
+++ b/ted.h
@@ -921,6 +921,12 @@ void definition_cancel_lookup(Ted *ted);
/// so don't keep it around long.
const char *document_link_at_buffer_pos(Ted *ted, BufferPos pos);
+// === ide-format.c ===
+/// format current selection (using LSP server)
+void format_selection(Ted *ted);
+/// format current file (using LSP server)
+void format_file(Ted *ted);
+
// === ide-highlights.c ===
// === ide-hover.c ===
@@ -1094,11 +1100,11 @@ bool tag_goto(Ted *ted, const char *tag);
/// for fatal errors
void die(PRINTF_FORMAT_STRING const char *fmt, ...) ATTRIBUTE_PRINTF(1, 2);
/// returns the current active buffer, or `NULL` if no buffer is active.
-TextBuffer *ted_get_active_buffer(Ted *ted);
+TextBuffer *ted_active_buffer(Ted *ted);
/// if a menu is open, returns the buffer that was open before the menu was opened.
///
/// returns `NULL` if no menu is open or no buffer was open before the menu was opened.
-TextBuffer *ted_get_active_buffer_behind_menu(Ted *ted);
+TextBuffer *ted_active_buffer_behind_menu(Ted *ted);
/// get width of ted window
float ted_window_width(Ted *ted);
/// get height of ted window