You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix/helix-view/src
François Laignel c718cf4bd3 helix-view: optionally bypass indent style auto detection
Some code formatting styles are too challenging for the indent style auto
detection heuristic.

The indent style for C code in [GStreamer] should use 2 spaces, but auto
detection leads to the followings being used:

* [gst.c] -> 2 spaces.
* [gstrtsp.c] -> 1 space.
* [gstrtspsrc.c] -> 4 spaces.

This commit adds the language configuration flag `auto-detect-indent` which
defaults to `true`. When set to `false`, it bypasses auto detection, always
using language defined indent style or `DEFAULT_INDENT` in last resort.

[GStreamer]: https://gitlab.freedesktop.org/gstreamer/gstreamer
[gst.c]: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/subprojects/gstreamer/gst/gst.c
[gstrtsp.c]: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/subprojects/gst-plugins-good/gst/rtsp/gstrtsp.c
[gstrtspsrc.c]: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c
1 month ago
..
annotations only show inline diagnostics after a delay 4 months ago
handlers Make helix_core::Uri cheap to clone 3 months ago
annotations.rs render diagnostic inline 4 months ago
base64.rs Fix new clippy lints (#5892) 2 years ago
clipboard.rs FIx incorrectly spelled cfg options (#10703) 7 months ago
document.rs helix-view: optionally bypass indent style auto detection 1 month ago
editor.rs Handle window/showMessage and display it bellow status line (#5535) 2 months ago
events.rs only show inline diagnostics after a delay 4 months ago
graphics.rs tui: Constify functions, shrink Margin representation 6 months ago
gutter.rs use newtype parttern for langauge server id 7 months ago
handlers.rs only show inline diagnostics after a delay 4 months ago
info.rs Use refactored Registers type 1 year ago
input.rs Normalize `S-<lower-ascii>` keymaps to uppercase ascii (#9213) 11 months ago
keyboard.rs build(deps): bump bitflags from 1.3.2 to 2.0.2 (#6387) 2 years ago
lib.rs Consistently maintain view position (#10559) 4 months ago
macros.rs Apply transactions to all views (#4733) 2 years ago
register.rs Return document display name from the '%' special register (#11275) 4 months ago
theme.rs Add: validation of bundled themes in build workflow (#11627) 2 months ago
tree.rs Resolve new Clippy lints 7 months ago
view.rs Improve scrolloff behavior (#11323) 4 months ago