helix/helix-core/src
Triton171 58758fee61
Indentation rework (#1562)
* WIP: Rework indentation system

* Add ComplexNode for context-aware indentation (including a proof of concept for assignment statements in rust)

* Add switch statements to Go indents.toml (fixes the second half of issue #1523)
Remove commented-out code

* Migrate all existing indentation queries.
Add more options to ComplexNode and use them to improve C/C++ indentation.

* Add comments & replace Option<Vec<_>> with Vec<_>

* Add more detailed documentation for tree-sitter indentation

* Improve code style in indent.rs

* Use tree-sitter queries for indentation instead of TOML config.
Migrate existing indent queries.

* Add documentation for the new indent queries.
Change xtask docgen to look for indents.scm instead of indents.toml

* Improve code style in indent.rs.
Fix an issue with the rust indent query.

* Move indentation test sources to separate files.
Add `#not-kind-eq?`, `#same-line?` and `#not-same-line` custom predicates.
Improve the rust and c indent queries.

* Fix indent test.
Improve rust indent queries.

* Move indentation tests to integration test folder.

* Improve code style in indent.rs.
Reuse tree-sitter cursors for indentation queries.

* Migrate HCL indent query

* Replace custom loading in indent tests with a designated languages.toml

* Update indent query file name for --health command.

* Fix single-space formatting in indent queries.

* Add explanation for unwrapping.

Co-authored-by: Triton171 <triton0171@gmail.com>
2022-03-31 00:08:07 +09:00
..
increment Replace tendril with smartstring 2022-02-10 11:12:47 +09:00
auto_pairs.rs Configurable auto pairs (#1624) 2022-02-25 17:36:54 +09:00
chars.rs Temporarily turn on unicode-lines 2022-03-17 10:53:50 +09:00
comment.rs Specify capacity on toggle_line_comments 2021-11-08 10:03:21 +09:00
config.rs migrate grammar fetching/building code into helix-loader crate 2022-03-10 17:31:57 +09:00
diagnostic.rs feat(lsp): configurable diagnostic severity (#1325) 2021-12-25 14:32:43 +09:00
diff.rs Fix Clippy lints in tests (#1563) 2022-01-23 16:37:23 +09:00
graphemes.rs Optimize rendering by using Ropey::byte_slice 2022-03-17 09:29:47 +09:00
history.rs Fix Clippy lints in tests (#1563) 2022-01-23 16:37:23 +09:00
indent.rs Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
lib.rs migrate grammar fetching/building code into helix-loader crate 2022-03-10 17:31:57 +09:00
line_ending.rs ropey 1.4.1 fixes the issue 2022-03-17 12:03:15 +09:00
macros.rs Split parts of helix-term into helix-view. 2020-09-21 18:24:16 +09:00
match_brackets.rs Fix match brackets comment (#1346) 2021-12-24 07:27:31 +05:30
movement.rs Add object.movement for tree-sitter navigation 2022-02-15 14:04:46 +09:00
object.rs add select_next_sibling and select_prev_sibling commands (#1495) 2022-01-21 00:52:33 +09:00
path.rs migrate grammar fetching/building code into helix-loader crate 2022-03-10 17:31:57 +09:00
position.rs Fix tab rendering to use dynamic tab width 2022-03-04 11:01:33 +09:00
register.rs Show infobox with register contents 2022-02-10 10:52:06 +09:00
search.rs Switch to a cleaner range-head moving abstraction. 2021-07-24 07:44:11 -07:00
selection.rs Fix Clippy lints in tests (#1563) 2022-01-23 16:37:23 +09:00
shellwords.rs Open files with spaces in filename, allow opening multiple files (#1231) 2021-12-12 21:13:33 +09:00
state.rs Reduce State use a bit further 2021-08-26 09:21:07 +09:00
surround.rs Show surround delete and replace errors in editor (#1709) 2022-02-28 17:56:39 +09:00
syntax.rs Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
textobject.rs Add object.movement for tree-sitter navigation 2022-02-15 14:04:46 +09:00
transaction.rs core: transaction: Resolve some TODOs 2022-03-03 17:04:25 +09:00