blob: 424ce88d25c09ad46f665e7168349c54978ec8a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
use fuzzy_matcher::skim::SkimMatcherV2;
#[derive(Default)]
pub struct Navigation {
pub selector_scroll_offset: usize,
pub fuzzy_matcher: Option<SkimMatcherV2>,
}
impl Navigation {
pub fn matcher(&mut self) -> &mut SkimMatcherV2 {
self.fuzzy_matcher
.get_or_insert_with(|| SkimMatcherV2::default().use_cache(true))
}
}
|