aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/indent.rs
Commit message (Collapse)AuthorAge
* Detect filetype from shebang line (#1001)ath32021-11-08
|
* Add treesitter textobjects (#728)Gokul Soumya2021-10-23
| | | | | | | | | | | | | | | | | | | | | | | | | * Add treesitter textobject queries Only for Go, Python and Rust for now. * Add tree-sitter textobjects Only has functions and class objects as of now. * Fix tests * Add docs for tree-sitter textobjects * Add guide for creating new textobject queries * Add parameter textobject Only parameter.inside is implemented now, parameter.around will probably require custom predicates akin to nvim' `make-range` since we want to select a trailing comma too (a comma will be an anonymous node and matching against them doesn't work similar to named nodes) * Simplify TextObject cell init
* Fix broken testBlaž Hrastnik2021-09-16
|
* fix: tree-sitter-scopes would infinitely loopBlaž Hrastnik2021-09-06
|
* Appease clippyBlaž Hrastnik2021-08-13
|
* Add :tree-sitter-scopes, useful when developing indents.tomlBlaž Hrastnik2021-08-13
|
* Move indent-style code into `helix_core::indent`.Nathan Vegdahl2021-07-30
|
* Fix append newline indentIvan Tham2021-07-26
| | | | Fix #492
* Made toggle_comments language dependent (#463)Cor Peters2021-07-18
| | | | | | | | | | | | | * Made toggle_comments language dependent * Fixed Test Cases * Added clippy suggestion * Small Fixes * Clippy Suggestion Co-authored-by: Cor <prive@corpeters.nl>
* Added option to provide a custom config file to the lsp. (#460)Cor Peters2021-07-18
| | | | | | | | | | | | | | | | | * Added option to provide a custom config file to the lsp. * Simplified lsp loading routine with anyhow * Moved config to language.toml * Fixed test case * Cargo fmt * Revert now-useless changes * Renamed custom_config to config Co-authored-by: Cor <prive@corpeters.nl>
* Dynamically load grammar libraries at runtimeBlaž Hrastnik2021-07-14
|
* Fix all remaining warnings in helix-core except for two.Nathan Vegdahl2021-07-02
| | | | | I'm not sure how to address them, because they look like they might be bugs, and code is involved. Will poke the relevant people.
* Remove #[allow(unused)] from helix-core, and fix unused imports.Nathan Vegdahl2021-07-02
| | | | Still a bunch more warnings to fix in core, but it's a start.
* Add ability to change theme on editorwojciechkepka2021-06-19
|
* Fix broken testBlaž Hrastnik2021-06-12
|
* Cleanup find_first_non_whitespace_char funcsWojciech Kępka2021-06-08
|
* Try to detect language when document file path is setBlaž Hrastnik2021-06-04
| | | | Fixes #91
* Hacky way to specify indent scopes per language via toml configs.Blaž Hrastnik2021-05-14
| | | | | | | | | Can't do it via a scm query nicely because it returns an iterator over all the matches, whereas we want to traverse the tree ourselves. Can't extract the pattern data from a parsed query either. Oh well, toml files for now.
* Fix indent test, we need to use the in-tree runtime dir.Blaž Hrastnik2021-05-10
|
* Indent array and tuple lists too.Blaž Hrastnik2021-05-09
|
* And some more indent patterns.Blaž Hrastnik2021-04-14
|
* Rust: add a few more scopes to indent.Blaž Hrastnik2021-04-14
|
* Simplify calculate_indentation.Blaž Hrastnik2021-04-14
|
* Remove the path specifier.Blaž Hrastnik2021-04-09
|
* Fix issues with "enum A {|}" <Enter> indent calculation.Blaž Hrastnik2021-04-07
|
* minor: Remove a few unwraps.Blaž Hrastnik2021-03-26
|
* Fix broken test.Blaž Hrastnik2021-03-25
|
* Add tab_width and indent_unit config.Blaž Hrastnik2021-03-22
|
* Remove State from a few more signatures.Blaž Hrastnik2021-03-18
|
* minor: Simplify some code.Blaž Hrastnik2021-02-24
|
* indent: use_list indentation, fix indentation bug on open_belowBlaž Hrastnik2021-02-19
| | | | | | use std::{ time::Duration // <- pressing `o` here would use }'s indent instead of prev line }
* treewide: &RopeSlice -> RopeSlice. It's Copy so no reason to pass by refBlaž Hrastnik2021-02-18
|
* nix: include rust-src so rust-analyzer works correctly.Blaž Hrastnik2021-01-19
|
* indent: Fix edge cases, refactor test.Blaž Hrastnik2021-01-10
|
* Address clippy lints.Blaž Hrastnik2021-01-08
|
* indent: refactor logic to be more correct.Blaž Hrastnik2021-01-08
| | | | | Thanks to atom-sane-indentation, nvim-treesitter and tree-sitter-indent.el for inspiration.
* Refactor: Document type as a wrapper around barebones State.Blaž Hrastnik2020-12-03
|
* wipBlaž Hrastnik2020-10-15
|
* Auto-indent on enter based on tree-sitter scopes.Blaž Hrastnik2020-10-14
|
* Share tab width definitions.Blaž Hrastnik2020-10-14
|
* Indent draft, linewise pasteBlaž Hrastnik2020-10-13