Commit Graph

6276 Commits (3fed359a0fbe067d56e67dffffd5f64c7a9e6ba7)

Author SHA1 Message Date
Nikita Revenco 3fed359a0f chore: improve error messages 2025-01-28 14:13:27 +00:00
Nikita Revenco 03d627a20d chore: remove example 2025-01-28 14:11:48 +00:00
Nikita Revenco 91ee5fd981 fix: apply correct style to primary selection 2025-01-28 14:10:28 +00:00
Nikita Revenco a82e00d70c test: handle error by unwrapping 2025-01-28 13:50:02 +00:00
Nikita Revenco 1501d0ad55 feat: print error to the user instead of panic 2025-01-28 13:49:37 +00:00
Nikita Revenco 7dd306132e fix: panic when couldn't parse selection string 2025-01-28 13:32:32 +00:00
Nikita Revenco 83271b98d8 chore: remove pointless language 2025-01-28 13:05:37 +00:00
Nikita Revenco d7bb5e9233 feat: use dummy values and not tree-sitter-helix 2025-01-27 23:21:54 +00:00
Nikita Revenco d16b27c4fe chore: remove unneeded file 2025-01-27 23:15:58 +00:00
Nikita Revenco 8f4d4c30b3 chore: remove example 2025-01-27 23:15:34 +00:00
Nikita Revenco ef5c878e1c style: revert formatting changes 2025-01-27 23:14:59 +00:00
Nikita Revenco b51ca5d500 Revert "chore: remove unnecessary files"
This reverts commit 51efd7e332.
2025-01-27 23:00:36 +00:00
Nikita Revenco 54143770b7 Revert "feat: revert unnecessary changes"
This reverts commit 6987b1d040.
2025-01-27 22:55:44 +00:00
Nikita Revenco 768a646468 chore: remove unused imports 2025-01-27 22:34:05 +00:00
Nikita Revenco 51efd7e332 chore: remove unnecessary files 2025-01-27 22:31:48 +00:00
Nikita Revenco 6987b1d040 feat: revert unnecessary changes 2025-01-27 22:31:02 +00:00
Nikita Revenco 443d2c8435 docs: add informational comments 2025-01-27 22:24:43 +00:00
Nikita Revenco 01b8493e74 refactor: variable names 2025-01-27 22:19:12 +00:00
Nikita Revenco 4a3bebcb0e fix: highlighted helix code block on windows 2025-01-27 22:16:57 +00:00
Nikita Revenco 9e26253b16 feat: implement line breaks for custom helix renderer 2025-01-27 22:03:04 +00:00
Nikita Revenco fa2de3222f feat: implement basic highlighting (does not handle newlines yet) 2025-01-27 21:55:35 +00:00
Nikita Revenco f4827c8abf feat: support add support for helix files 2025-01-27 19:23:58 +00:00
Poliorcetics b00b475dfe
just: bump grammar support to Just 1.39.0 (#12692) 2025-01-26 20:10:27 -06:00
kyfanc 9829ac0c02
Cycle through hover results from multiple language servers (#10122)
Co-authored-by: Vladyslav Karasov <36513243+cotneit@users.noreply.github.com>
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-01-26 11:24:50 -06:00
Kristoffer Plagborg Bak Sørensen 7c907e66f4
feat: print helpful suggestion when using `:{,r}sort` incorrectly (#12585) 2025-01-26 10:39:19 -06:00
Kristoffer Plagborg Bak Sørensen 259be07f05
feat: add asm-lsp for assembly dialects (#12684) 2025-01-26 10:28:40 -06:00
Michael Davis 360c6bb061
stdx: Replace RopeSliceExt::byte_to_next_char with ceil_char_boundary
The new `RopeSliceExt::ceil_char_boundary` from the parent commits can
be used to implement `RopeSliceExt::byte_to_next_char` when used with
`RopeSlice::byte_to_char`. That function had only one caller and that
caller will eventually disappear when we switch to Ropey v2 and drop
character indexing, so we can drop `byte_to_next_char` now and replace
its caller with `byte_to_char` plus `ceil_char_boundary`.

This change keeps the unit tests for `byte_to_next_char` and checks them
against a polyfill of `byte_to_char` plus `ceil_char_boundary` to ensure
that `byte_to_next_char`'s intended behavior is not changed.
2025-01-26 11:11:53 -05:00
Michael Davis 4919058e90
Use RopeSliceExt floor/ceil functions for goto_file_impl search cap
This is a good example use-case of the `floor_char_boundary` and
`ceil_char_boundary` functions added in the parent commit. In the
single-width, single-selection case in `goto_file` we cap the search
to either the current line or 1000 bytes before or after the cursor
(whichever case comes earlier). That byte index might not lie on a
character boundary so it needs to be fixed to either the prior or
later boundary.
2025-01-26 11:10:50 -05:00
Michael Davis 23b424a46d
stdx: Add floor/ceil char boundary functions to RopeSliceExt
These functions mimic `str::floor_char_boundary` and
`str::floor_char_boundary` (currently unstable under
`round_char_boundary`). They're useful for correcting a byte index
which may not lie on a character boundary. For example you might limit
a search within a slice to some fixed number of bytes. The fixed number
might not lie on a boundary though so it needs to be corrected to
either the earlier (floor) or later (ceil) boundary.
2025-01-26 11:10:24 -05:00
Joel Dueck aac0ce5fd1
Update install.md: fix link to lang server install instructions (#12675) 2025-01-26 14:21:13 +09:00
Michael Davis 899afad4a6
flake: Revert update of nixpkgs 2025-01-25 13:52:14 -05:00
magackame 3fdd98979c
fix: `goto_file_impl` incorrect use of `slice` instead of `byte_slice` (#12673) 2025-01-25 12:38:35 -06:00
Alexis Mousset de738bac6a
Small refinements for modus themes (#12670) 2025-01-25 20:30:43 +09:00
Darshan Kumawat 81708b70e6
doc: Document `mdm` and `mrm` for popup help (#12650) 2025-01-24 11:46:19 -06:00
Michael Davis 8bf9adf7b6
Update tree-sitter-elixir 2025-01-24 12:37:48 -05:00
Kevin Danne 9088f8a599
fix: HELIX_RUNTIME environment path for windows on building-from-source book page (#12658)
Co-authored-by: Kevin Danne <kevin.danne@triluxds.com>
2025-01-24 09:03:49 -06:00
Nikita Revenco a63a2ad281
feat: specify custom lang server(s) for `:lsp-stop` and `:lsp-restart` (#12578)
Co-authored-by: Nikita Revenco <154856872+NikitaRevenco@users.noreply.github.com>
2025-01-23 18:14:35 -06:00
RoloEdits 4ded712dbd
perf(syntax): short-circuit if name matches `language_id` (#12407) 2025-01-23 17:49:14 -06:00
Michael Davis 151caeacc6
Revert "Re-enable Hare by default (#11507)"
This reverts commit 2c09a35ccf.

Temporarily reverting this to unblock any builds during SourceHut's
ongoing DDoS: <https://status.sr.ht/issues/2025-01-23-git.sr.ht-ddos/>
2025-01-23 18:43:13 -05:00
Michael Davis d4ade40983
Rename "file browser" => "file explorer"
Connects #11285
2025-01-23 18:17:56 -05:00
Michael Davis 0b9701e899
tui buffer: Handle multi-width graphemes in set_string_anchored
We should skip zero-width graphemes and reset only long (more than
1-width) graphemes.

Connects #12036
2025-01-23 18:12:20 -05:00
Michael Davis 9d6ea773e9
prompt: Cap anchor to line length in cursor calculation
This prevents a panic when using `C-w` on a long single-word prompt line
for example.

Connects #12036
2025-01-23 17:33:28 -05:00
Denys Rybalka 6b044aeb29
Add file browser (#11285) 2025-01-23 16:28:18 -06:00
Yomain 8af33108f6
fix: better display of prompts on long inputs (#12036) 2025-01-23 15:56:34 -06:00
Michael Davis 1afa63d457
rust: Highlight `/` and `!` within comments as comments 2025-01-23 16:17:44 -05:00
Khang Nguyen Duy 5f62c5c24c
Update to more up-to-date zig tree-sitter repo (#11980)
Co-authored-by: Khang Nguyen Duy <iceghost@users.noreply.github.com>
Co-authored-by: Khang Nguyen Duy <os@ndykhang.net>
2025-01-23 14:36:24 -06:00
TornaxO7 fa27ae16a7
Add path completion for multiple cursors (#12550) 2025-01-23 14:31:12 -06:00
Michael Davis 8986f8b953
Update nix flake inputs
$ nix flake update
    • Updated input 'crane':
        'github:ipetkov/crane/37e4f9f0976cb9281cd3f0c70081e5e0ecaee93f?narHash=sha256-WD0//20h%2B2/yPGkO88d2nYbb23WMWYvnRyDQ9Dx4UHg%3D' (2024-10-03)
      → 'github:ipetkov/crane/849376434956794ebc7a6b487d31aace395392ba?narHash=sha256-GLJvkOG29XCynQm8XWPyykMRqIhxKcBARVu7Ydrz02M%3D' (2025-01-22)
    • Updated input 'flake-utils':
        'github:numtide/flake-utils/c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a?narHash=sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ%3D' (2024-09-17)
      → 'github:numtide/flake-utils/11707dc2f618dd54ca8739b309ec4fc024de578b?narHash=sha256-l0KFg5HjrsfsO/JpG%2Br7fRrqm12kzFHyUHqHCVpMMbI%3D' (2024-11-13)
    • Updated input 'nixpkgs':
        'github:nixos/nixpkgs/bc947f541ae55e999ffdb4013441347d83b00feb?narHash=sha256-NOiTvBbRLIOe5F6RbHaAh6%2B%2BBNjsb149fGZd1T4%2BKBg%3D' (2024-10-04)
      → 'github:nixos/nixpkgs/9e4d5190a9482a1fb9d18adf0bdb83c6e506eaab?narHash=sha256-nmKOgAU48S41dTPIXAq0AHZSehWUn6ZPrUKijHAMmIk%3D' (2025-01-21)
    • Updated input 'rust-overlay':
        'github:oxalica/rust-overlay/25685cc2c7054efc31351c172ae77b21814f2d42?narHash=sha256-lJMFnMO4maJuNO6PQ5fZesrTmglze3UFTTBuKGwR1Nw%3D' (2024-10-07)
      → 'github:oxalica/rust-overlay/38374302ae9edf819eac666d1f276d62c712dd06?narHash=sha256-S2rHCrQWCDVp63XxL/AQbGr1g5M8Zx14C7Jooa4oM8o%3D' (2025-01-23)
2025-01-23 15:18:37 -05:00
Rolo 650af50c13 fix: typos 2025-01-23 15:18:16 -05:00
Rolo c1d382a532 fix(lints): clippy 1.84 2025-01-23 15:18:16 -05:00