@@ -3,29 +3,10 @@ pub(crate) mod lsp;
3
3
pub ( crate ) mod typed;
4
4
5
5
pub use dap:: * ;
6
+ use helix_vcs:: Hunk ;
6
7
pub use lsp:: * ;
7
8
pub use typed:: * ;
8
9
9
- use crate :: {
10
- args,
11
- commands:: insert:: * ,
12
- compositor:: { self , Component , Compositor } ,
13
- filter_picker_entry,
14
- job:: { self , Callback , Jobs } ,
15
- keymap:: CommandList ,
16
- ui:: {
17
- self ,
18
- menu:: { Cell , Row } ,
19
- overlay:: overlayed,
20
- FilePicker , Picker , Popup , Prompt , PromptEvent ,
21
- } ,
22
- } ;
23
-
24
- use anyhow:: { anyhow, bail, ensure, Context as _} ;
25
- use futures_util:: StreamExt ;
26
- use fuzzy_matcher:: FuzzyMatcher ;
27
- use grep_regex:: RegexMatcherBuilder ;
28
- use grep_searcher:: { sinks, BinaryDetection , SearcherBuilder } ;
29
10
use helix_core:: {
30
11
char_idx_at_visual_offset, comment,
31
12
doc_formatter:: TextFormat ,
@@ -35,7 +16,7 @@ use helix_core::{
35
16
indent:: IndentStyle ,
36
17
line_ending:: { get_line_ending_of_str, line_end_char_index, str_is_line_ending} ,
37
18
match_brackets,
38
- movement:: { self , move_vertically_visual, Direction , Movement } ,
19
+ movement:: { self , move_vertically_visual, Direction } ,
39
20
object, pos_at_coords,
40
21
regex:: { self , Regex , RegexBuilder } ,
41
22
search:: { self , CharMatcher } ,
@@ -47,7 +28,6 @@ use helix_core::{
47
28
visual_offset_from_block, LineEnding , Position , Range , Rope , RopeGraphemes , RopeSlice ,
48
29
Selection , SmallVec , Tendril , Transaction ,
49
30
} ;
50
- use helix_vcs:: Hunk ;
51
31
use helix_view:: {
52
32
clipboard:: ClipboardType ,
53
33
document:: { FormatterError , Mode , SCRATCH_BUFFER_NAME } ,
@@ -59,17 +39,42 @@ use helix_view::{
59
39
view:: View ,
60
40
Document , DocumentId , Editor , ViewId ,
61
41
} ;
62
- use ignore:: { DirEntry , WalkBuilder , WalkState } ;
63
- use once_cell:: sync:: Lazy ;
64
- use serde:: de:: { self , Deserialize , Deserializer } ;
42
+
43
+ use anyhow:: { anyhow, bail, ensure, Context as _} ;
44
+ use fuzzy_matcher:: FuzzyMatcher ;
45
+ use insert:: * ;
46
+ use movement:: Movement ;
47
+
48
+ use crate :: {
49
+ args,
50
+ compositor:: { self , Component , Compositor } ,
51
+ filter_picker_entry,
52
+ job:: Callback ,
53
+ keymap:: CommandList ,
54
+ ui:: {
55
+ self ,
56
+ menu:: { Cell , Row } ,
57
+ overlay:: overlayed,
58
+ FilePicker , Picker , Popup , Prompt , PromptEvent ,
59
+ } ,
60
+ } ;
61
+
62
+ use crate :: job:: { self , Jobs } ;
63
+ use futures_util:: StreamExt ;
64
+ use std:: { collections:: HashMap , fmt, future:: Future } ;
65
+ use std:: { collections:: HashSet , num:: NonZeroUsize } ;
66
+
65
67
use std:: {
66
68
borrow:: Cow ,
67
- collections:: { HashMap , HashSet } ,
68
- fmt,
69
- future:: Future ,
70
- num:: NonZeroUsize ,
71
69
path:: { Path , PathBuf } ,
72
70
} ;
71
+
72
+ use once_cell:: sync:: Lazy ;
73
+ use serde:: de:: { self , Deserialize , Deserializer } ;
74
+
75
+ use grep_regex:: RegexMatcherBuilder ;
76
+ use grep_searcher:: { sinks, BinaryDetection , SearcherBuilder } ;
77
+ use ignore:: { DirEntry , WalkBuilder , WalkState } ;
73
78
use tokio_stream:: wrappers:: UnboundedReceiverStream ;
74
79
75
80
pub type OnKeyCallback = Box < dyn FnOnce ( & mut Context , KeyEvent ) > ;
0 commit comments