mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Make format_selections
respect document configuration (#11169)
This commit is contained in:
parent
079f544260
commit
1bad3b0dd4
@ -4523,7 +4523,11 @@ fn format_selections(cx: &mut Context) {
|
||||
.text_document_range_formatting(
|
||||
doc.identifier(),
|
||||
range,
|
||||
lsp::FormattingOptions::default(),
|
||||
lsp::FormattingOptions {
|
||||
tab_size: doc.tab_width() as u32,
|
||||
insert_spaces: matches!(doc.indent_style, IndentStyle::Spaces(_)),
|
||||
..Default::default()
|
||||
},
|
||||
None,
|
||||
)
|
||||
.unwrap();
|
||||
|
Loading…
Reference in New Issue
Block a user