helix/helix-view/src
PiergiorgioZagaria 219d2c2515
Change default formatter for any language (#2942)
* Change default formatter for any language

* Fix clippy error

* Close stdin for Stdio formatters

* Better indentation and pattern matching

* Return Result<Option<...>> for fn format instead of Option

* Remove unwrap for stdin

* Handle FormatterErrors instead of Result<Option<...>>

* Use Transaction instead of LspFormatting

* Use Transaction directly in Document::format

* Perform stdin type formatting asynchronously

* Rename formatter.type values to kebab-case

* Debug format for displaying io::ErrorKind (msrv fix)

* Solve conflict?

* Use only stdio type formatters

* Remove FormatterType enum

* Remove old comment

* Check if the formatter exited correctly

* Add formatter configuration to the book

* Avoid allocations when writing to stdin and formatting errors

* Remove unused import

Co-authored-by: Gokul Soumya <gokulps15@gmail.com>
2022-08-04 13:01:48 +09:00
..
handlers Add more context; Editor::open doesn't need to own path 2022-06-18 23:57:45 -04:00
clipboard.rs clipboard: add logging and healthcheck (#3271) 2022-07-31 17:05:34 +09:00
document.rs Change default formatter for any language (#2942) 2022-08-04 13:01:48 +09:00
editor.rs Change default formatter for any language (#2942) 2022-08-04 13:01:48 +09:00
graphics.rs Fix LF line-endings (#3316) 2022-08-03 07:53:57 -05:00
gutter.rs Make gutters padding optional (#2996) 2022-07-18 10:13:47 +09:00
info.rs Handle newlines in register infobox 2022-02-10 10:52:06 +09:00
input.rs Format keys identically in statusline and command palette (#2790) 2022-06-22 01:46:50 +09:00
keyboard.rs Fix LF line-endings (#3316) 2022-08-03 07:53:57 -05:00
lib.rs Split off dap event handlers into helix-view to allow reuse 2022-03-28 11:01:59 +09:00
macros.rs Simplify view/doc macros 2021-11-18 14:13:42 +09:00
theme.rs Add live preview to theme picker (#1798) 2022-07-05 19:44:16 +09:00
tree.rs keep jump/file history when using :split (#3031) 2022-07-22 10:23:00 +09:00
view.rs Rename padding to spacer, remove by default 2022-07-26 10:10:06 +09:00