mirror of https://github.com/helix-editor/helix
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.cpull/11920/head
parent
be2884d800
commit
c718cf4bd3
Loading…
Reference in New Issue