Commit Graph

6088 Commits (9edd87bdbbeeadd3170d92610d4a3c856620f268)

Author SHA1 Message Date
Pascal Kuthe 9edd87bdbb
Merge branch 'incomplete_completion' into batteries 2024-12-08 04:30:10 +01:00
Pascal Kuthe 9a06aeabfa
implement incomplete completion requests 2024-12-08 04:09:48 +01:00
Pascal Kuthe 79c88b8cf9
implement snippet tabstop support 2024-12-07 16:58:45 +01:00
Pascal Kuthe f8905a03e3
add fallback onNextKey
adds a variant of on_next_key callbacks that are only called when no other
mapping matches a key
2024-12-07 16:20:53 +01:00
Pascal Kuthe b9bbd3ff69
add DocumentFocusLost event 2024-12-07 16:20:53 +01:00
Pascal Kuthe 9c08ef4f15
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.
2024-12-07 16:20:53 +01:00
Pascal Kuthe 3c8e41d9e2
add snippet system to helix core 2024-12-07 16:20:45 +01:00
Pascal Kuthe 67c3849ce7
Add range type to helix stdx 2024-12-07 16:20:06 +01:00
Tomas Zemanovic fc9968bd4b
fix: allow to parse "-" as a key code (#12191)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2024-12-06 08:46:38 -06:00
Michael Davis 28953ef40f
Simplify `change_current_directory` and remove extra allocs 2024-12-05 18:50:31 -05:00
Nikita Revenco 93deb1f6ae
feat: `:cd -` changes to the previous working directory (#12194)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2024-12-05 17:40:37 -06:00
Allemand Instable a6f80c5bd9
Fix mojo LSP configuration to conform to magic introduction (#12195)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2024-12-05 16:54:10 -06:00
David Crespo cd1f6e8239
Add static commands to documentation (#11950)
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
2024-12-05 11:13:00 -06:00
Michael Davis fd3e889927 Add integration tests for line comment continuation 2024-12-05 20:53:53 +09:00
Michael Davis 1e6fe00001 Trim all trailing whitespace on insert_newline 2024-12-05 20:53:53 +09:00
Ian Hobson 4c8175ca04 Draw each message line separately in `draw_eol_diagnostic`
`set_string_truncated` renders the entire string while ignoring
newlines, so if the diagnostic's message contains multiple lines it
produces messages like 'first linesecond line'.

To avoid these run-ons, this commit renders each line separately,
inserting double spaces for disambiguation.
2024-12-04 18:23:30 -06:00
Ian Hobson 715a13b2d3 Remove an incorrect comment
This was copied from the function above (set_style). I don't know enough
about the function to suggest an alternative.
2024-12-04 18:23:30 -06:00
Kieran Moy e670970dd8
Change default comment token to # for unrecognized files (#12080)
* Change the default comment token

* update test

* keep the original
2024-12-05 01:11:39 +01:00
Nikita Revenco 565bfbba25
feat: `:cd` with no args changes to home directory (#12042) 2024-12-04 18:09:33 -06:00
rojebd 5bdf14110f
add Vintage theme (#9361)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2024-12-04 17:12:21 -06:00
rojebd 8a7006dd57
update voxed theme (#9328) 2024-12-04 17:03:45 -06:00
barsoosayque cd972ae77d
Add support for Teal language (#12081)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2024-12-04 14:59:11 -06:00
Michael Davis 07e7e7534d
theme: Include key names in style parsing warnings
This should make it easier to figure out why the theme-check CI job
fails. Previously the message didn't include the failing key so you
were left searching or guessing where the error occurred.
2024-12-04 10:24:42 -05:00
Tomasz Zurkowski 7a2afdc080
Show an error when formatter is not available (#12183) 2024-12-04 08:27:54 -06:00
Michael Davis 085c4fe4c8
docs: Eliminate improper use of "LSP" term
Sometimes we used "LSP" to mean "language server". This change
eliminates the improper "LSP" usage.

Ref https://github.com/helix-editor/helix/pull/12183#discussion_r1868436105
2024-12-03 18:29:44 -05:00
Michael Davis fa68bac391
contributing: Add steps for updating the MSRV 2024-12-03 10:07:59 -05:00
Michael Davis 403aaa8cf3
CI: Use an env var for MSRV
This just reduces duplication in the build workflow - no functional
change - to make updating the MSRV easier in the future.
2024-12-03 10:07:59 -05:00
dependabot[bot] cf81e15315
build(deps): bump the rust-dependencies group with 3 updates (#12181)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-02 18:27:49 -06:00
Nikita Revenco c0bfdd7bfe
fix: catppuccin theme colors for checked and unchecked lists (#12167) 2024-12-02 12:37:01 -06:00
Michael Davis ec1628c07f
registers: Use saved values for clipboard providers which can't read
This fixes reading from the clipboard when using the termcode provider.
Reading isn't implemented for the termcode provider so `get_contents`
returns `ClipboardError::ReadingNotSupported`. `read_from_clipboard`
needs to recognize this case and use the saved values instead of
emitting an error log and returning nothing.

Follow-up of #10839
Also see #12142
2024-12-02 10:16:17 -05:00
uncenter 548f04fe26
Add support for the Vento template language (#12147)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2024-12-02 09:03:11 -06:00
xiabo 44c1d51d8c
add bufferline highlighting for flexoki themes (#12146) 2024-12-02 09:01:00 -06:00
Poliorcetics 83fe23ce75
just: bump grammar support to Just 1.37.0 (#12141) 2024-12-02 08:45:46 -06:00
Jaakko Paju b1bdbc6789
Fix language configuration for .conf files (#12156) 2024-12-02 08:27:08 -06:00
Michael Davis 191b0f08a9
Remove unnecessary clippy allow for old false positive
The clippy version after the recent MSRV bump no longer emits
`redundant_clone` warnings for these lines. We allowed these previously
since they were emitted as false positives.
2024-12-02 09:23:42 -05:00
RoloEdits 5ba97ba41e
fix(clippy): clippy 1.83 lints (#12150) 2024-12-02 08:23:32 -06:00
Poliorcetics e1d1a5c5a1
cleanup: remove pr.md introduced in #11448 (#12140) 2024-11-27 13:24:57 -06:00
Poliorcetics 0f4729289b
fix: Remove leftover debug println! (#12138)
Introduced in dc941d6d24
2024-11-27 20:05:18 +09:00
Milan Vaško 7676106960
Search selection with word boundary detection (#12126)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2024-11-26 13:30:53 -06:00
Ronan Desplanques 95e6c11ebc
Improve language support for Ada (#12131)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2024-11-26 12:43:34 -06:00
dependabot[bot] 80709cee61
build(deps): bump the rust-dependencies group with 4 updates (#12129)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-25 18:06:54 -06:00
Michael Davis dbd3b251d8
CI: Pin mdbook to 0.4.43
This should prevent future surprising changes to the site from newly
published mdbook versions with breaking changes. For example mdbook
0.4.41 introduced some changes that needed the `index.hbs` file to be
updated. See the parent commit.
2024-11-25 17:56:17 -05:00
Michael Davis 436855ad6f
book: Copy over index.hbs from mdbook 0.4.43
0.4.41 introduced some breaking changes for those using custom themes
so we need to re-vendor the file. This file is taken from mdbook
0.4.43:

    mdbook init --theme

In a tmp directory, and then a reset of the line that adds Colibri as
a selectable theme.
2024-11-25 17:53:13 -05:00
RoloEdits cbbeca6c52
fix(clippy): suppress `unused` lint on windows (#12107) 2024-11-22 08:10:11 -06:00
Ryan Roden-Corrent 46ffec3fd4
Add WORKSPACE.bzlmod to starlark file-types (#12103) 2024-11-22 07:57:20 -06:00
Michael Davis fbe216e11c
CI: Match rust-toolchain action to MSRV version 2024-11-22 08:39:37 -05:00
Rolo f07c1cc9f5 chore(msrv): bump MSRV from 1.70 to 1.76 2024-11-22 01:17:08 -08:00
Philipp Mildenberger dc941d6d24
Add support for path completion (#2608)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Co-authored-by: Pascal Kuthe <pascalkuthe@pm.me>
2024-11-21 21:12:36 -06:00
Lens0021 / Leslie f305c7299d
Add support for Amber-lang (#12021)
Co-authored-by: Phoenix Himself <pkaras.it@gmail.com>
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2024-11-21 10:09:42 -06:00
Valentin B. 9e0d2d0a19
chore(solidity): add highlight queries (#12102)
Add highlights for `hex` and `unicode` string prefixes and YUL booleans
2024-11-21 07:58:14 -06:00