Supermaven enhanced (#11521)

Fixes #11422 by accepting just the start of the line.

Release Notes:

- N/A

---------

Co-authored-by: max <max@zed.dev>
Co-authored-by: jacob <jacob@supermaven.com>
This commit is contained in:
Kyle Kelley
2024-05-07 15:38:03 -07:00
committed by GitHub
co-authored by max jacob
parent 33a72219c0
commit 1cf40d77e2
5 changed files with 97 additions and 45 deletions
+1
View File
@@ -4356,6 +4356,7 @@ impl Editor {
text: completion.text.to_string().into(),
});
self.insert_with_autoindent_mode(&completion.text.to_string(), None, cx);
self.refresh_inline_completion(true, cx);
cx.notify();
true
} else {
@@ -30,7 +30,7 @@ pub trait InlineCompletionProvider: 'static + Sized {
buffer: &Model<Buffer>,
cursor_position: language::Anchor,
cx: &'a AppContext,
) -> Option<&str>;
) -> Option<&'a str>;
}
pub trait InlineCompletionProviderHandle {