Commit Graph

6549 Commits (termina)

Author SHA1 Message Date
Michael Davis a34064019a
Remove `Backend::get_cursor`
It is unused and cannot be used on some terminal hosts like `conhost`
that do not respond to VT queries. This doesn't have any affect on
behavior - I'm removing it so that we don't rely on it in the future.
2025-05-11 12:53:31 -04:00
Michael Davis 6359e1ac03
Replace Crossterm with Termina
This change switches out the terminal manipulation library to one I've
been working on: Termina. It's somewhat similar to Crossterm API-wise
but is a bit lower-level. It's also influenced a lot by TermWiz - the
terminal manipulation library in WezTerm which we've considered
switching to a few times.

Termina is more verbose than Crossterm as it has a lower level interface
that exposes escape sequences and pushes handling to the application.
API-wise the important piece is that the equivalents of Crossterm's
`poll_internal` / `read_internal` are exposed. This is used for reading
the cursor position in both Crossterm and Termina, for example, but also
now can be used to detect features like the Kitty keyboard protocol and
synchronized output sequences simultaneously.
2025-05-11 12:53:31 -04:00
Michael Davis 4c46871904
tui: Refactor Config type handling in backends
The `Config` can be passed when creating the backend (for example
`CrosstermBackend::new`) and is already updated in the
`Backend::reconfigure` callback. Recreating the tui `Config` during
`claim` and `restore` is unnecessary and causes a clone of the editor's
Config which is a fairly large type. This change drops the `Config`
parameter from those callbacks and updates the callers. Instead it is
passed to `CrosstermBackend` which then owns it.

I've also moved the override from the `editor.undercurl` key onto the
tui `Config` type - I believe it was just an oversight that this was not
done originally. And I've updated the `From<EditorConfig> for Config`
to take a reference to the editor's `Config` to avoid the unnecessary
clone during `CrosstermBackend::new` and `Backend::reconfigure`.
2025-05-11 12:05:19 -04:00
Bekobi 63a1a94d92
Changed rust-analyzer configuration to use server-side file watching (#13432)
Co-authored-by: Bekobi <coding@bekobi.eu>
2025-05-10 14:48:46 -04:00
omahs bfd2c72715
fix: typos (#13505) 2025-05-10 10:36:17 -05:00
Bryce Berger 4c8600967c
verilog: add highlighting for the "var" keyword (#13493) 2025-05-10 08:08:34 -05:00
Jules Wiriath 313ef30f64
bump: tree-sitter-cpp (#13504) 2025-05-10 08:00:05 -05:00
bloxx12 9bb370c91e
chore: clean up grammars.nix (#13506) 2025-05-10 07:58:48 -05:00
Bloxx12 cb1ecc9128 flake: checks: build the release package 2025-05-09 11:57:48 -04:00
Bloxx12 7a6bc53528 default.nix: remove ellipsis in argument attrset 2025-05-09 11:57:48 -04:00
Bloxx12 60a03a35c6 flake: drop flake-utils dependency 2025-05-09 11:57:48 -04:00
David Else e4ef096945
Update Bash highlights (#13477) 2025-05-08 08:22:14 -05:00
Michael Davis 9e7a6a5dbd
xtask: Allow passing languages and themes to check
This is for convenience when testing a few languages or themes, for
example while updating a language's parser and queries. query-check in
particular can take a while since parser initialization and query
analysis can each take some time and there are now many many languages.
Specifying the exact language makes the feedback loop much faster.
2025-05-08 09:04:22 -04:00
Nik Revenco 1460a086df
feat: add wgsl built-in functions to `@function.builtin` (#13479)
Co-authored-by: Nik Revenco <154856872+NikitaRevenco@users.noreply.github.com>
2025-05-08 07:56:36 -05:00
Sean Russell 51d3b15557
Update tree-sitter-v (#13469)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-05-07 17:38:07 -05:00
Remo Senekowitsch e53462c78c
verilog: separate highlighting of keyword operators (#13473) 2025-05-06 08:24:14 -05:00
dependabot[bot] fb45017a26
build(deps): bump the rust-dependencies group with 3 updates (#13474)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-06 08:16:18 -05:00
Rotem Horesh cbac427383
feat: add a tree-sitter grammar and highlights for dunst's config (#13458) 2025-05-05 09:08:33 -05:00
CalebLarsen 46cb177792
feat: add basic Slang support (#13449)
Co-authored-by: uncenter <uncenter@uncenter.dev>
2025-05-05 09:03:40 -05:00
Spenser Black 4784650ccf
Add support for Pug language (#13435) 2025-05-05 08:57:00 -05:00
uncenter ece12dd74d
docs(guides/textobject): list `parameter.around` capture (#13470) 2025-05-05 09:20:57 -04:00
Spenser Black 72932a391b
Support `.git-blame-ignore-revs` (#13460) 2025-05-04 08:52:28 -05:00
RoloEdits 4c630c148a
feat(commands): add `selection` variable expansion (#13467) 2025-05-04 08:43:09 -05:00
RoloEdits ac3c6ebaff
feat(commands): add `language` variable expansion (#13466) 2025-05-04 08:35:58 -05:00
Michael Davis 12139a4c30
queries: Fix `comment.unused` highlights in Erlang
* Other languages use `comment.unused` instead of `comment.discard`.
* Fix the precedence of discarded variables - previously the parameter
  highlight was higher precedence so discarded variables in the
  parameter list were highlighted as parameters instead of
  `comment.unused`.
2025-05-02 09:46:46 -04:00
RoloEdits aa3fad84ef
build(grammar): remove explicit opt out of optimizations for MSVC (#13451)
`cc` should pick correct defaults when `debug` or `release`.
2025-05-01 22:54:45 +02:00
Daniel Bowring 69b9db2fbb
Add goto_column and extend_to_column commands (#13440) 2025-05-01 09:12:30 -05:00
Spenser Black 1c32fb2d4d
Help Linguist identify Tree-sitter queries (#13436) 2025-04-29 08:28:20 -05:00
dependabot[bot] b42e1d20d2
build(deps): bump the rust-dependencies group with 3 updates (#13437) 2025-04-29 10:48:45 +09:00
Joffrey Bluthé 949d9e4433
feat: give formatters access to filename (#13429)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-04-28 17:34:05 -05:00
RoloEdits fbc4e5798e
chore(msrv): bump from 1.76 to 1.82 (#13275)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-04-28 09:48:54 -05:00
Michael Davis 47cdd23e50
LSP: Fix `Client::supports_feature` check for 'colorProvider'
The old check would allow sending textDocument/documentColor requests
when the server declared `{"colorProvider": false}` in its capabilities
as this was `Some`:

    Some(ColorProviderCapability::Simple(false))

The Julia language server sets this explicitly to `false` in the wild.
2025-04-28 09:44:25 -04:00
Michael Davis 9f3b193743
queries: Fix precedence for zero-arity erlang macros 2025-04-27 15:06:11 -04:00
Sumandora 99b57181d5
Improve auto completion for shell commands (#12883)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-04-27 14:04:56 -05:00
Jonas Köhnen 448e3c2ef5
fix(highlights/go): defer, go, goto are keywords (#13425) 2025-04-27 13:23:47 -05:00
Tobias Tschinkowitz 95c8d9c9e9
Add highlighting for lua methods (#13401) 2025-04-27 08:41:16 -05:00
dastrukar 8580d35de9
sonokai: fix constant.builtin highlights (#13410) 2025-04-27 08:39:05 -05:00
one c5e9dda269
feat(theme): add kinda_nvim theme (#13406) 2025-04-27 08:35:23 -05:00
Queyrouzec 01f7e636d5
Update svelte tree sitter commit (#13423) 2025-04-27 08:33:29 -05:00
IwantHappiness 2ec59f8ff6
feat(theme): add vesper theme (#13394) 2025-04-26 12:16:18 -04:00
Mazrine 23e16264b3
feat(theme): add ataraxia theme (#13390) 2025-04-26 12:15:38 -04:00
Matouš Dzivjak 0354ceb95f
chore(languages): bump tree-sitter-go-mod (#13395) 2025-04-26 11:57:37 -04:00
Erasin Wang 626407395a
fix theme onelight: ui.picker.header (#13413) 2025-04-26 11:50:01 -04:00
Erasin Wang 52d4d775ce
Update scss and highlights (#13414) 2025-04-26 11:35:31 -04:00
dependabot[bot] 0815b52e09
build(deps): bump libc in the rust-dependencies group (#13389) 2025-04-22 15:10:48 +09:00
Daichi Tamaki 523e8aa781
Fix tokyonight_* theme color keys (#13375)
Co-authored-by: tamakiii <tamakiii@users.noreply.github.com>
2025-04-18 09:59:53 -05:00
Kristoffer Plagborg Bak Sørensen 3bfec18a45
Make `goto_word` jump-labels easier to distinguish for zed themes (#13370) 2025-04-17 15:26:52 -05:00
Daniel Fichtinger 0f1af75f76
feat: added ashen theme (#13366) 2025-04-17 14:40:06 -05:00
James Turk 37b5d8ba99
feat: add basic Quarto support (#13339) 2025-04-16 08:03:21 -05:00
chtenb 795040910b
Update other-software.md (#13360) 2025-04-16 07:58:26 -05:00