aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-03-27 04:59:49 +0000
committerBlaž Hrastnik2022-03-28 02:02:49 +0000
commit4940db3e2de21b47a7f867896befbcc5010d231d (patch)
tree0410ce2d4782b444a009e8818dbffb50c577849e /helix-term/src/commands
parent20cf75dfa1097988cb66dbd5696154584ae32e4b (diff)
Make truncate_start a builder method instead
Diffstat (limited to 'helix-term/src/commands')
-rw-r--r--helix-term/src/commands/lsp.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-term/src/commands/lsp.rs b/helix-term/src/commands/lsp.rs
index 530e528a..19d1084e 100644
--- a/helix-term/src/commands/lsp.rs
+++ b/helix-term/src/commands/lsp.rs
@@ -71,7 +71,7 @@ fn sym_picker(
) -> FilePicker<lsp::SymbolInformation> {
// TODO: drop current_path comparison and instead use workspace: bool flag?
let current_path2 = current_path.clone();
- let mut picker = FilePicker::new(
+ let picker = FilePicker::new(
symbols,
move |symbol| {
if current_path.as_ref() == Some(&symbol.location.uri) {
@@ -104,8 +104,8 @@ fn sym_picker(
}
},
move |_editor, symbol| Some(location_to_file_location(&symbol.location)),
- );
- picker.truncate_start = false;
+ )
+ .truncate_start(false);
picker
}