refactor: consolidate nvim crates, extract server library, and update workspace dependencies

This commit is contained in:
Riz Ashraf committed 2026-10-04 01:42:59 +01:00
1 parent a083719cf1
commit 533adfd41b
53 files changed
+5967 -1230

No files matched your search

+8 -1
View File
@@ -123,7 +123,12 @@ impl MemoryIndex {
tokio::task::spawn_blocking(move || {
if needs_commit.swap(false, std::sync::atomic::Ordering::SeqCst) {
let mut writer = writer.lock().unwrap_or_else(|e| e.into_inner());
writer.commit()?;
if let Err(first_err) = writer.commit() {
std::thread::sleep(std::time::Duration::from_millis(100));
writer.commit().map_err(|second_err| {
tantivy::TantivyError::SystemError(format!("First commit error: {}; Second commit error: {}", first_err, second_err))
})?;
}
}
Ok(())
})
@@ -135,6 +140,7 @@ impl MemoryIndex {
})
}
pub fn search(
&self,
query: &str,
@@ -345,6 +351,7 @@ mod tests {
language: "rust".to_string(),
description: "A test snippet".to_string(),
updated_at: 0,
tags: vec![],
embedding: None,
};
let _ = index.index_snippet(&snippet).await.unwrap();