Commit Graph

5635 Commits (snippet_placeholder)
 

Author SHA1 Message Date
Pascal Kuthe 98eb42bb82
implement snippet tabstop support 1 month ago
Pascal Kuthe b82ea33c20
add fallback onNextKey
adds a variant of on_next_key callbacks that are only called when no other
mapping matches a key
1 month ago
Pascal Kuthe bbd3ed682f
add DocumentFocusLost event 1 month ago
Pascal Kuthe 0d7857bfc4
refactor DocumentDidChange events
in the past DocumentDidChange and SelectionDidChange events were implemented in
a simplistic manner to get a simple prototype out. However, if you want to use
these events in more complex scenarios with interdependencies between the two
handlers the system fell short.

The `SelectionDidChange` event was dispatched before the DocumentDidChange (and
not at all if the selection wasn't manually set) so any handlers that wants to
track selection was not able to map their ranges yet.

The reason for this was actually the way that apply_impl was structured. The
function was slightly refactored to address these problems and enable moving
other range mappings to event handlers.
1 month ago
Pascal Kuthe 26a190db62
add snippet system to helix core 1 month ago
Pascal Kuthe 3cbd2cccd3
Add range type to helix stdx 1 month ago
David Else 109f53fb60
Add debug highlights to the dark plus theme (#10593) 1 month ago
woojiq 839ec4ad39 test: match around closest pair tree-sitter version 1 month ago
woojiq 81dc8e8d6b feat: find closest pair using tree-sitter 1 month ago
Yoav Lavi 50c90cb47c
Add support for highlighting any `.*ignore` file (#10579) 1 month ago
David Else 22960e0d70
Refactor Dark Plus and add new maintainer (#10574)
* Make dark_plus.toml more accurate to VSCode

* theme(dark_plus): make type.builtin blue

* Refactor dark_plus and add myself as new maintainer

Co-authored-by: NAME <NAME@EXAMPLE.COM>

---------

Co-authored-by: Luca Saccarola <96259932+saccarosium@users.noreply.github.com>
Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
Co-authored-by: NAME <NAME@EXAMPLE.COM>
1 month ago
Krishan 89a9f2be78
specify direction for select_prev_sibling and select_next_sibling (#10542)
* specify direction for select_prev_sibling and select_next_sibling

* fix failing integration-test
1 month ago
Kirawi e18b772654
Remove kirawi from `dark_plus` maintainer list (#10543) 1 month ago
Pascal Kuthe 38ee845b05 don't overload LS with completion resolve requests
While moving completion resolve to the event system in #9668 we introduced what
is essentially a "DOS attack" on slow LSPs. Completion resolve requests were
made in the render loop and debounced with a timeout. Once the timeout expired
the resolve request was made. The problem is the next frame would immediately
request a new completion resolve request (and mark the old one as obsolete but
because LSP has no notion of cancelation the server would still process it). So
we were in essence sending one completion request to the server every 150ms and
only stopped if the server managed to respond before we rendered a new frame.
This caused overload on slower machines/with slower LS.

In this PR I revamped the resolve handler so that a request is only ever
resolved once. Both by checking if a request is already in-flight and by marking
failed resolve requests as resolved.
1 month ago
Pascal Kuthe b834806dbc use newtype parttern for langauge server id 1 month ago
Matouš Dzivjak d140072fdc
feat(themes): jump-label for modus themes (#10538)
Add styling for jump-labels for modus themes. I couldn't find
any official approach here so picking `yello-cooler`. `cooler` is
used for other meta highlights by modus and yellow seems to be
used the least - only warnings, so there's little chance of colliding
with other highlights.
1 month ago
Simran Kedia 26d9610e78
Ignore .svn version control files (#10536)
Co-authored-by: Simran Kedia <simk@fb.com>
1 month ago
Triton171 efae85ec20
Simplify first-in-line computation for indent queries. (#10527) 1 month ago
dependabot[bot] 35b6aef5fb
build(deps): bump the rust-dependencies group with 8 updates (#10532)
Bumps the rust-dependencies group with 8 updates:

| Package | From | To |
| --- | --- | --- |
| [tree-sitter](https://github.com/tree-sitter/tree-sitter) | `0.22.2` | `0.22.5` |
| [serde](https://github.com/serde-rs/serde) | `1.0.197` | `1.0.198` |
| [serde_json](https://github.com/serde-rs/json) | `1.0.115` | `1.0.116` |
| [encoding_rs](https://github.com/hsivonen/encoding_rs) | `0.8.33` | `0.8.34` |
| [chrono](https://github.com/chronotope/chrono) | `0.4.37` | `0.4.38` |
| [anyhow](https://github.com/dtolnay/anyhow) | `1.0.81` | `1.0.82` |
| [clipboard-win](https://github.com/DoumanAsh/clipboard-win) | `5.3.0` | `5.3.1` |
| [cc](https://github.com/rust-lang/cc-rs) | `1.0.90` | `1.0.95` |


Updates `tree-sitter` from 0.22.2 to 0.22.5
- [Release notes](https://github.com/tree-sitter/tree-sitter/releases)
- [Changelog](https://github.com/tree-sitter/tree-sitter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tree-sitter/tree-sitter/compare/v0.22.2...v0.22.5)

Updates `serde` from 1.0.197 to 1.0.198
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.197...v1.0.198)

Updates `serde_json` from 1.0.115 to 1.0.116
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.115...v1.0.116)

Updates `encoding_rs` from 0.8.33 to 0.8.34
- [Commits](https://github.com/hsivonen/encoding_rs/compare/v0.8.33...v0.8.34)

Updates `chrono` from 0.4.37 to 0.4.38
- [Release notes](https://github.com/chronotope/chrono/releases)
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md)
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.37...v0.4.38)

Updates `anyhow` from 1.0.81 to 1.0.82
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.81...1.0.82)

Updates `clipboard-win` from 5.3.0 to 5.3.1
- [Commits](https://github.com/DoumanAsh/clipboard-win/commits)

Updates `cc` from 1.0.90 to 1.0.95
- [Release notes](https://github.com/rust-lang/cc-rs/releases)
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.90...1.0.95)

---
updated-dependencies:
- dependency-name: tree-sitter
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: encoding_rs
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: chrono
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: clipboard-win
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: cc
  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>
1 month ago
Chris Sergienko 345e687573
feat: update bash grammar to latest tree-sitter-bash rev (#10526) 1 month ago
Ben Fekih, Hichem 4b8bcd2773 popup: call required_size only once while rendering
to speed up the rendering a little

Signed-off-by: Ben Fekih, Hichem <hichem.f@live.de>
1 month ago
Ben Fekih, Hichem af4ff80524 Improve popup position
Make the popup positions more consistent.
Improvements:
1. if the signature popup content is bigger than the available space,
   then the popup is always shown under the cursor, even if there more
   space above the cursor than below
2. There is no mutation anymore inside required_size. Maybe in the future
   we can update all widgets to have no mutations and change the trait

Signed-off-by: Ben Fekih, Hichem <hichem.f@live.de>
1 month ago
Michael Davis 211f368064
Respect mode when starting a search (#10505)
Currently the editor mode has no effect on the behavior of `search` and
`rsearch`. We can pass in the right movement for the editor mode to make
the behavior or `search` and `rsearch` match `search_next` and
`search_prev` in select mode.
1 month ago
Kevin Vigor 18d5cacea6
Override crossterm's support for NO_COLOR. (#10514)
Since helix isn't usable without color support, honoring this does
nobody any good.
1 month ago
RoloEdits 94405f3d07
refactor(themes): `gruvbox` warnings to `yellow1` (#10506) 1 month ago
urly3 98b4df23a3
theme: everblush (#10394)
changed the statusline colors for SELECT mode
  the previous colours seem to be incorrect and quite ugly (sorry).
  I chose the magenta over the cyan that (colors that were already present) as it has
  more contrast with the existing INSERT colour.
  the statusline colours are now inline with eachother, all having the background be the 'background'
  colour, with varying foregrounds.

Co-authored-by: urly3 <u@rl.yyy>
1 month ago
Nuke 2209effb02
Update lang-support.md for new wiki page name (#10508)
The prior URL invites you to create a new wiki page. I think https://github.com/helix-editor/helix/wiki/Language-Server-Configurations is the correct place to point to now.

There might be more issues related to changes in wiki structure that are not caught by some CI link check because of this (it's a valid URL, just not what you want to direct to lol)
1 month ago
Rolo 34291f0f3b feat(themes): add `ui.virtual.ruler` for `base16_default_dark` 1 month ago
Rolo 4e16956007 feat(themes): add `ui.virtual.ruler` for `base16_default_light` 1 month ago
Rolo bb57686854 feat(themes): add `ui.virtual.ruler` for `base16_terminal` 1 month ago
Rolo ccb0c40b5e feat(themes): add `ui.virtual.ruler` for `mellow` 1 month ago
Rolo 785d09e38f feat(themes): add `ui.virtual.ruler` for `poimandres`
This change also propagates to `poimandres-storm`
1 month ago
Rolo 6fdc1d6a95 feat(themes): add `ui.virtual.ruler` for `varua` 1 month ago
Rolo c0aadfd4ce feat(themes): add `ui.virtual.ruler` for `vim_dark_high_contrast` 1 month ago
Rolo 368b29ca72 feat(themes): add `ui.virtual.ruler` for `base16_default` 1 month ago
Rolo be8dc22272 feat(themes): add `ui.virtual.ruler` for `horizon-dark` 1 month ago
Rolo a5a9827f32 fix(themes): correct typo in `theme.toml` 1 month ago
Rolo 88da9e857c feat(themes): add `ui.virtual.ruler` for `default` 1 month ago
Rolo 4713eb06b1 refactor(themes): change `solarized_*` ruler to `bg`
Also changed the colors to better blend with the theme.
1 month ago
Rolo 6bdc6f460e refactor(themes): removed `ui.highlight` effects from `solarized_light`
This now matches `solarized_dark` changes from #10261
1 month ago
ves 97f683b336
Improve HTML highlighting (#10503) 1 month ago
Blaž Hrastnik 8924691c5d minor: Update docs 1 month ago
Blaž Hrastnik f06a166962 Add Move language support 1 month ago
Daniel O'Brien 1d23796ad1
Fix kanagawa theme when using cursorline (#10500) 2 months ago
Sean Perry 30baff907d
Implement read command (#10447)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Co-authored-by: Ibrahim Dursun <ibrahim@dursun.cc>
2 months ago
ath3 521accaf00
Include "change" in textobject autoinfo (#10496) 2 months ago
Gaëtan Lehmann ab203b5f53
update earthfile grammar and highlight queries (#10489) 2 months ago
Pascal Kuthe 1cce693bef
correctly describe behavior of C in tutor (#10465) 2 months ago
Clara Smyth 43dff1c772
Fix: Svelte queries (#10487) 2 months ago
Jonathan Lebon 36ee9ba7d6
languages/rust: add `rust-script` and `cargo` shebangs (#10484)
The former is one of the more popular forks of the original idea:

https://rust-script.org/

The latter is an RFC for folding that functionality into cargo itself,
available on nightly:

https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#script
2 months ago