Skip to content

Commit

Permalink
change unindexed block completion previews
Browse files Browse the repository at this point in the history
  • Loading branch information
Feel-ix-343 committed Apr 22, 2024
1 parent dbf3c83 commit fea143c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/completion/unindexed_block_completer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ impl<'a> UnindexedBlock<'a> {
.link_completer
.vault()
.select_referenceable_nodes(Some(block.file))
.into_iter()
.find(|referenceable| match referenceable {
.into_par_iter()
.find_any(|referenceable| match referenceable {
Referenceable::IndexedBlock(_path, indexed_block) => {
indexed_block.range.start.line == block.range.start.line
}
Expand All @@ -172,8 +172,8 @@ impl<'a> UnindexedBlock<'a> {
_ => (
Some(Documentation::MarkupContent(MarkupContent {
kind: MarkupKind::Markdown,
value: (block.range.start.line as isize - 5
..=block.range.start.line as isize + 5)
value: (block.range.start.line as isize - 1
..=block.range.start.line as isize + 1)
.flat_map(|i| {
Some((
completer
Expand Down

0 comments on commit fea143c

Please sign in to comment.