ZIm/crates/language/src
Finn Evers 84bd85aafd
Add option to disable auto indentation (#36259)
Closes https://github.com/zed-industries/zed/issues/11780

While auto indentation is generally nice to have, there are cases where
it is currently just not good enough for some languages (e.g. Haskell)
or users just straight up do not want their editor to auto indent for
them. Hence, this PR adds the possibilty to disable auto indentation for
either all language or on a per-language basis. Manual invocation via
the `editor: auto indent` action will continue to work.

Also takes a similar approach as
https://github.com/zed-industries/zed/pull/31569 to ensure performance
is fine for larger multicursor edits.

Release Notes:

- Added the possibility to configure auto indentation for all languages
and per language. Add `"auto_indent": false"` to your settings or
desired language to disable the feature.
2025-08-23 10:39:19 -04:00
..
syntax_map Add a test demonstrating ERB language loading bug (#32278) 2025-06-11 04:03:42 +00:00
buffer.rs Add option to disable auto indentation (#36259) 2025-08-23 10:39:19 -04:00
buffer_tests.rs language: Update block_comment and documentation comment (#34861) 2025-08-23 10:35:52 -04:00
diagnostic_set.rs sum_tree: Store context on cursor (#34904) 2025-08-23 10:35:50 -04:00
highlight_map.rs Docs for indent_size_for_line and co 2024-01-09 20:50:34 +01:00
language.rs lsp: Always report innermost workspace_folders (#36407) 2025-08-23 10:39:19 -04:00
language_registry.rs lsp: Identify language servers by their configuration (#35270) 2025-08-23 10:39:18 -04:00
language_settings.rs Add option to disable auto indentation (#36259) 2025-08-23 10:39:19 -04:00
manifest.rs lsp: Identify language servers by their configuration (#35270) 2025-08-23 10:39:18 -04:00
outline.rs editor: Improve code completion filtering to provide fewer and more accurate suggestions (#32928) 2025-06-18 16:01:28 +05:30
proto.rs Show inline previews for LSP document colors (#32816) 2025-06-17 13:46:21 +00:00
syntax_map.rs sum_tree: Do not implement Dimension on tuples, use new Dimensions wrapper instead (#35482) 2025-08-23 10:37:25 -04:00
task_context.rs Add initial package.json scripts task autodetection (#32497) 2025-06-10 22:16:27 +00:00
text_diff.rs agent: Improve Gemini support in the edit_file tool (#31116) 2025-05-22 12:01:43 +03:00
toolchain.rs lsp: Identify language servers by their configuration (#35270) 2025-08-23 10:39:18 -04:00