summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ted.c b/ted.c
index 2ce39fe..229935a 100644
--- a/ted.c
+++ b/ted.c
@@ -71,6 +71,12 @@ LSP *ted_get_lsp(Ted *ted, Language lang) {
return ted->test_lsp;
}
+LSP *ted_get_active_lsp(Ted *ted) {
+ if (!ted->active_buffer)
+ return NULL;
+ return buffer_lsp(ted->active_buffer);
+}
+
u32 ted_color(Ted *ted, ColorSetting color) {
return ted_active_settings(ted)->colors[color];
}