diff options
author | farwyler | 2022-06-05 10:50:57 +0000 |
---|---|---|
committer | GitHub | 2022-06-05 10:50:57 +0000 |
commit | f92a25a856d572c7bd4b8e597a3f86ce211e81d5 (patch) | |
tree | f6f63b8ab2c6af7d47f64b9bd8a90bd9950ed3e3 /helix-view/src | |
parent | b2bd87df81756d4925bf1f4da6962b9dd83a807c (diff) |
Passing extra formatting options to LSPs (#2635)
* allows passing extra formatting options to LSPs
- adds optional field 'format' to [[language]] sections in 'languages.toml'
- passes specified options the LSPs via FormattingOptions
* cleaner conversion of formatting properties
* move formatting options inside lsp::Client
* cleans up formatting properties merge
Diffstat (limited to 'helix-view/src')
-rw-r--r-- | helix-view/src/document.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index 9c3853c8..2c4b5de9 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -410,6 +410,7 @@ impl Document { let language_server = self.language_server()?; let text = self.text.clone(); let offset_encoding = language_server.offset_encoding(); + let request = language_server.text_document_formatting( self.identifier(), lsp::FormattingOptions { |