mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
parent
8702aaaefc
commit
c18de0e8f0
@ -412,7 +412,11 @@ pub fn format(&self) -> Option<impl Future<Output = LspFormatting> + 'static> {
|
|||||||
let offset_encoding = language_server.offset_encoding();
|
let offset_encoding = language_server.offset_encoding();
|
||||||
let request = language_server.text_document_formatting(
|
let request = language_server.text_document_formatting(
|
||||||
self.identifier(),
|
self.identifier(),
|
||||||
lsp::FormattingOptions::default(),
|
lsp::FormattingOptions {
|
||||||
|
tab_size: self.tab_width() as u32,
|
||||||
|
insert_spaces: matches!(self.indent_style, IndentStyle::Spaces(_)),
|
||||||
|
..Default::default()
|
||||||
|
},
|
||||||
None,
|
None,
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user