aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Rust: Highlight extern crate aliasesMichael Davis2024-03-21
| | | | For example `extern crate alloc as myalloc;`
* Update tree-sitter-gleam and highlightsMichael Davis2024-03-21
| | | | | This contains a few syntax fixes. The highlights have been updated as well for reserved identifiers and escape sequences
* Update tree-sitter-erlang and highlightsMichael Davis2024-03-21
| | | | | | | | | | | | | | | | | | A few changes: * 0-arity type specs like the following previously would not have the expected 'variable.parameter' highlighting for the return type: -spec foo() -> Value when Value :: term(). * Highlight module, type and function docs as documentation comments and inject markdown into them. * Replace `#match?` predicates with `#any-of?` where possible. * Remove custom auto-pairs. Now that Erlang uses markdown for documentation, the asciidoc-style backtick-singlequote pair is no longer useful.
* Recognize 'mmd' as mermaidMichael Davis2024-03-21
|
* Update tree-sitter-git-commitMichael Davis2024-03-21
| | | | This commit has partial support for escapes within strings.
* Create a tutor entry for using splits (#9417)JR2024-03-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP * WIP * WIP * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * WIP * WIP * WIP * Fix typos * Fix typos * Minor updates * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Remove mention of arrows in split tutorial * Do not mention starting in normal mode * Fix right drift of titles * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Reflow paragraphs * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> --------- Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Update rasmus.toml (#9939)Jordan Reger2024-03-21
| | | | | | | * Update rasmus.toml Remove "ui.virtual" setting as it selects seemingly random characters to highlight. * Add ui.virtual.ruler
* Evenly space statusline areas when there isn't space to align middle (#9950)Michael Davis2024-03-21
| | | | | | | | | | | The refactor in bcf7b263 introduced a possible subtraction with overflow when the statusline is layed out so that the left or right sides are larger than the padding it would take to align the center area to the middle. When the left or right areas are too large, we can evenly space the elements rather than trying to align the center area to the middle. This prevents possible underflows and makes sense visually - it's still easy to tell the areas apart at a glance.
* Add new theme keys for LSP diagnostic tags for dark_plus (#9949)David Else2024-03-20
|
* fix(languages): specify correct comment-token for PKGBUILD files (#9943)Hendrik Norkowski2024-03-20
|
* Refactor statusline elements to build `Spans` (#9122)Szabin2024-03-19
| | | | | * Refactor statusline elements to return Spans * Split render fn to build Spans and blit to Surface
* Add support for ember.js templates (#9902)Arthur Deierlein2024-03-19
| | | | | | | | | | | | | | | | | * feat: add support for ember .hbs (glimmer) templates * adjust highlights to helix * highlight this correctly in block statements * correctly highlight attributes * correctly highlight hash_pair * add newline to highlights.scm * refactor: use #any-of and #eq instead of #match * chore: add newline to languages.toml
* add register completion (#9936)Kirawi2024-03-19
|
* Ignore more version control systems (#9935)Tobias Hunger2024-03-19
| | | | Ignore `.pijul` and `.jj` as well as `.git`. This makes hx so much more usable with VCSes other than git!
* feat: add suport for helm charts (#9900)Arthur Deierlein2024-03-19
|
* Prevent `shell_keep_pipe` from stopping on nonzero exit status code (#9817)Cyrill Schenkel2024-03-19
| | | | | | | | | | | | The `shell_impl` and `shell_impl_async` functions no longer return `success` because it was always `true`. If the command didn't succeed both functions would return an `Err`. This was also the reason, why `shell_keep_pipe` didn't work. It relied upon the value of `success` and aborted in case of an `Err`. It now removes any selection for which `shell_impl` returns `Err`. If the command always fails, the selections are preserved and an error message is displayed in the status bar.
* Initial Ada language support (after stale) (#9908)Damian Zaręba2024-03-19
| | | | | | | | | | | | | * Adding initial support for ada language, based off #7790 PR from tomekw * More translation to helix-specific tree-sitter scm labels, add ada gpr switch to ada LSP * Generate ada in lang-support.md using cargo xtask docgen * Update tree-sitter definitions according to comments * Remove .gpr glob from languages.toml * Fix unit in languages.toml for ada, update locals.scm to helix needs
* Enhance support for PKGBUILDS (#9909)Arthur Deierlein2024-03-19
| | | | | * enhance support for PKGBUILDS * run cargo xtask docgen
* Do not stop reloading docs on error (#9870)Luis Useche2024-03-19
| | | | | | | | | | In the `reload-all` command, we should not stop reloading the documents if one error is found. Instead, we should report the error and continue trying to reload the current open documents. This is useful in cases where a backing file does not exist temporarily (e.g. when editing a git patch in the outstanding chain that doesn't have a file just yet). This change also remove the error messages in the cases where the backing is `None`, like in new docs or `tutor`.
* Respect undercurl config even with no terminfo (#9897)Khang Nguyen Duy2024-03-19
| | | | | | | | | | | | | | I have just found out that my recent Windows Terminal version supported rendering undercurl (see https://devblogs.microsoft.com/commandline/windows-terminal-preview-1-20-release ). However, looking at the source, terminfo is required for helix to emit the undercurl control code, which isn't available on Windows AFAIK. This commit make helix respects the `editor.undercurl` option when there is no terminfo. Tested on Windows Terminal Preview 1.20 Signed-off-by: Khang Nguyen <khang.nguyenduycse@hcmut.edu.vn>
* build(deps): bump the rust-dependencies group with 3 updates (#9929)dependabot[bot]2024-03-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps the rust-dependencies group with 3 updates: [bitflags](https://github.com/bitflags/bitflags), [toml](https://github.com/toml-rs/toml) and [lsp-types](https://github.com/gluon-lang/lsp-types). Updates `bitflags` from 2.4.2 to 2.5.0 - [Release notes](https://github.com/bitflags/bitflags/releases) - [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md) - [Commits](https://github.com/bitflags/bitflags/compare/2.4.2...2.5.0) Updates `toml` from 0.8.10 to 0.8.12 - [Commits](https://github.com/toml-rs/toml/compare/toml-v0.8.10...toml-v0.8.12) Updates `lsp-types` from 0.95.0 to 0.95.1 - [Changelog](https://github.com/gluon-lang/lsp-types/blob/master/CHANGELOG.md) - [Commits](https://github.com/gluon-lang/lsp-types/compare/v0.95.0...v0.95.1) --- updated-dependencies: - dependency-name: bitflags dependency-type: direct:production update-type: version-update:semver-minor dependency-group: rust-dependencies - dependency-name: toml dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rust-dependencies - dependency-name: lsp-types dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rust-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Optimize get_truncated_pathmo8it2024-03-19
|
* Optimize getting a relative pathmo8it2024-03-19
|
* Optimize fold_home_dirmo8it2024-03-19
|
* Call as_ref only oncemo8it2024-03-19
|
* ci: Group minor rust dependency dependabot updatesBlaž Hrastnik2024-03-19
| | | | https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#groups
* build(deps): bump tokio-stream from 0.1.14 to 0.1.15 (#9926)dependabot[bot]2024-03-19
| | | | | | | | | | | | | | | Bumps [tokio-stream](https://github.com/tokio-rs/tokio) from 0.1.14 to 0.1.15. - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-stream-0.1.14...tokio-stream-0.1.15) --- updated-dependencies: - dependency-name: tokio-stream dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump anyhow from 1.0.80 to 1.0.81 (#9925)dependabot[bot]2024-03-19
| | | | | | | | | | | | | | | Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.80 to 1.0.81. - [Release notes](https://github.com/dtolnay/anyhow/releases) - [Commits](https://github.com/dtolnay/anyhow/compare/1.0.80...1.0.81) --- updated-dependencies: - dependency-name: anyhow dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump gix from 0.58.0 to 0.61.0 (#9924)dependabot[bot]2024-03-19
| | | | | | | | | | | | | | | | Bumps [gix](https://github.com/Byron/gitoxide) from 0.58.0 to 0.61.0. - [Release notes](https://github.com/Byron/gitoxide/releases) - [Changelog](https://github.com/Byron/gitoxide/blob/main/CHANGELOG.md) - [Commits](https://github.com/Byron/gitoxide/compare/gix-v0.58.0...gix-v0.61.0) --- updated-dependencies: - dependency-name: gix dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump thiserror from 1.0.57 to 1.0.58 (#9923)dependabot[bot]2024-03-19
| | | | | | | | | | | | | | | Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.57 to 1.0.58. - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.57...1.0.58) --- updated-dependencies: - dependency-name: thiserror dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump clipboard-win from 5.2.0 to 5.3.0 (#9922)dependabot[bot]2024-03-19
| | | | | | | | | | | | | | Bumps [clipboard-win](https://github.com/DoumanAsh/clipboard-win) from 5.2.0 to 5.3.0. - [Commits](https://github.com/DoumanAsh/clipboard-win/commits) --- updated-dependencies: - dependency-name: clipboard-win dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Add yaml LSP for docker compose (#9916)Jaakko Paju2024-03-18
| | | | | * Add yaml LSP for docker compose * Change docs
* add koka language support (#8727)Matthew Toohey2024-03-18
| | | Co-authored-by: Pascal Kuthe <pascal.kuthe@semimod.de>
* Add initial support for SuperCollider (#9329)Phil2024-03-18
|
* Fix malformed predicates in highlighting queriesMichael Davis2024-03-18
|
* Bump tree-sitter to 0.22.2Michael Davis2024-03-18
|
* Add textobject queries for vala (#8541)Joey Hain2024-03-17
|
* Add blade support (#9513)Leonardo Eugênio2024-03-17
| | | | | | | * Add php-only language config and queries php-only is required enabling php injections like in blade templates * Add blade templates support
* Fix selected text background in toykonight (#9789)Carsten Führmann2024-03-17
| | | | | | | | | | | | Before the fix, the color that the original (Neovim) tokyonight uses for Neovim's visual mode was used in Helix for highlighting the selected item in the picker. But for the highlighting of selected _text_ in Helix (corresponding to Neovim's visual mode), a much darker background was used. This made it very hard to pick out selected text, in particular in suboptimal lighting conditions. I swapped the two colors, so that text selection now looks like in Neovim, while selected items in the picker are highlighted a bit less strongly. (But still easy to see because the whole line is highlighted.)
* Updated grammar for hurl 4 (#9775)Erasin Wang2024-03-17
|
* Extend groovy support (#9677)Benedikt Ritter2024-03-17
| | | | | | | | | | | | | | | | | | | | | | | | * Extend groovy support Use more complete parser introduced in nvm-treesitter in https://github.com/nvim-treesitter/nvim-treesitter/commit/d4dac523d2546afc266eb9b5a7986690b5319c41 * Update runtime/queries/groovy/locals.scm Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Drop indent.scm for groovy It was copied from the tree-sitter repository but is not compatiblw with the way indent queries are implemented in Helix. * Adapt groovy highlights to helix syntax * Update documentation --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Update to modus-themes 4.4.0 (#9912)Alexis Mousset2024-03-17
|
* Fix URL in doc chapter about Textobject queries (#5773)Jonas De Vuyst2024-03-17
| | | Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* add 'file-absolute-path' to statusline (#4535)Dan Cardamore2024-03-17
| | | | | | | | | | | * feat: add 'file-abs-path' to statusline (#4434) * cleanup implementation * rename to be non-abbreviated names --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Add Support for JSONC (#9906)George "Riye" Hollister2024-03-17
| | | | | | | | | | | | * Added `jsonc` language with support for comments The `vscode-json-language-server` accepts `jsonc` as a language id. Allowing the use of comments within JSON files. * fix: Update `injdection-rejex` to be unique * fix: use includes to remove redundant queries * ci: Generate language-support docs
* Add support for hyprland config (#9899)Arthur Deierlein2024-03-17
| | | | | | | * feat: add hyprland config language * adjust indents to helix * adjust highlights to helix
* fix typo "braket" in jsx highlights (#9910)Arthur Deierlein2024-03-17
|
* Keybind for Extend/shrink selection up and down (#9080)Emi2024-03-17
| | | | | | | | | | | | | | | | | | | * implement another selection modifying command * Selection feels more ergonomic in case of swapping the direction. This also fixes a problem when starting at an empty line. * rename select_line_up/down to select_line_above/below * apply clippy suggestion of using cmp instead of if-chain * revert `Extent` implementing `Clone/Copy` * move select_line functions below extend_line implementations * implement help add function, which saturates at the number of text lines --------- Co-authored-by: Emi <emanuel.boehm@gmail.com>
* Fix comment key bind behaviour in OCaml (#9894)Nick2024-03-16
|
* Handle starting and continuing the count separately (#9887)Michael Davis2024-03-15
|