Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/lib.rs')
| -rw-r--r-- | helix-view/src/lib.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/helix-view/src/lib.rs b/helix-view/src/lib.rs index 46bcf7e6..1c0d7e08 100644 --- a/helix-view/src/lib.rs +++ b/helix-view/src/lib.rs @@ -5,6 +5,7 @@ mod action; pub mod annotations; pub mod base64; pub mod clipboard; +pub mod diagnostic; pub mod document; pub mod editor; pub mod events; @@ -55,7 +56,17 @@ pub fn align_view(doc: &mut Document, view: &View, align: Align) { doc.set_view_offset(view.id, view_offset); } +#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] +pub enum Range { + Document(helix_stdx::Range), + Lsp { + range: helix_lsp::lsp::Range, + offset_encoding: helix_lsp::OffsetEncoding, + }, +} + pub use action::Action; +pub use diagnostic::Diagnostic; pub use document::Document; pub use editor::Editor; use helix_core::char_idx_at_visual_offset; |