diff options
author | pommicket <pommicket@gmail.com> | 2022-12-20 20:39:43 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-20 20:39:43 -0500 |
commit | 885df8890e537383df71f8f828444d6c5cce0243 (patch) | |
tree | 469388524c6738c3c44d9ee45c5d114b6ed0cb44 /ted.c | |
parent | d3375f02cfed99ed40c28631e62654af23817729 (diff) |
more completion
Diffstat (limited to 'ted.c')
-rw-r--r-- | ted.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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]; } |