summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-20 20:39:43 -0500
committerpommicket <pommicket@gmail.com>2022-12-20 20:39:43 -0500
commit885df8890e537383df71f8f828444d6c5cce0243 (patch)
tree469388524c6738c3c44d9ee45c5d114b6ed0cb44 /ted.c
parentd3375f02cfed99ed40c28631e62654af23817729 (diff)
more completion
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];
}