Commit graph

6440 commits

Author SHA1 Message Date
Nik Revenco
992801d105 refactor: use hashmap! macro 2025-03-20 02:34:24 +00:00
Nik Revenco
2d17365ed3 test: add documentation for macro 2025-03-20 02:18:03 +00:00
Nik Revenco
9a82b5b3a6 test: add extra step to test case 2025-03-20 02:04:40 +00:00
Nik Revenco
3db6fd157c test: delete test case 2025-03-20 02:00:52 +00:00
Nik Revenco
bfdd67f625 test: fix on windows (?) 2025-03-20 01:21:24 +00:00
Nik Revenco
983b0a14da test: add ability to have deleted lines 2025-03-20 00:44:32 +00:00
Nik Revenco
29c49d3d36 test: add an extra test case 2025-03-20 00:10:50 +00:00
Nik Revenco
c8eb9f2899 feat: add line_blame static command
_
2025-03-19 23:45:10 +00:00
Nik Revenco
f830c76a76 test: with interspersed lines 2025-03-19 23:17:52 +00:00
Nik Revenco
d553b81aa7 test: make test syntax more expressive. Allow specifying line numbers that just got added 2025-03-19 23:17:52 +00:00
Nik Revenco
c9873817d5 test: create helper macros for tests 2025-03-19 21:31:18 +00:00
Nik Revenco
97e1a4168d refactor: rename blame -> blame_line
_

_
2025-03-19 17:49:51 +00:00
Nik Revenco
115492980f test: add tests for custom inline commit parsser 2025-03-19 17:40:22 +00:00
Nik Revenco
548899d7b1 feat: allow more customizability for inline blame 2025-03-19 17:22:21 +00:00
Nik Revenco
8b559da256 feat: allow using custom commit format 2025-03-19 16:16:15 +00:00
Nik Revenco
452da44dc7 refactor: extract into a blame module 2025-03-19 15:43:07 +00:00
Nik Revenco
9278a68186 fix: account for inserted and deleted lines
_
2025-03-19 15:10:14 +00:00
Nik Revenco
2e756a9348 feat: [editor.vcs] -> [editor.version-control] 2025-03-19 12:51:13 +00:00
Nik Revenco
fc19b756ee refactor: remove nesting 2025-03-19 12:49:37 +00:00
Nik Revenco
215fb29fe6 refactor: remove some layers of abstraction 2025-03-19 12:35:35 +00:00
Nik Revenco
e6bf6bc2f4 chore: remove commented code 2025-03-19 00:05:41 +00:00
Nik Revenco
ff60198273 chore: remove unnecessary panic!s 2025-03-19 00:04:54 +00:00
Nik Revenco
1782c35860 perf: use background task for worker
_
2025-03-19 00:03:07 +00:00
Nik Revenco
c518f845f5 chore: add progress 2025-03-18 20:23:47 +00:00
Nik Revenco
1134c9def3 docs: document [editor.vcs.blame] 2025-03-18 20:02:55 +00:00
Nik Revenco
1439261d17 chore: set blame to false by default 2025-03-18 20:01:23 +00:00
Nik Revenco
9bdf9ac941 chore: clean up
chore: remove unused import

_
2025-03-18 19:56:29 +00:00
Nik Revenco
ddf8ac1158 feat: implement inline git blame 2025-03-18 19:09:02 +00:00
Nik Revenco
711aa58d40 feat: implement end of line virtual text for the current line 2025-03-18 19:01:05 +00:00
Nik Revenco
1ac4e51932 feat: figure out how to draw stuff at the end of lines 2025-03-18 18:45:04 +00:00
Nik Revenco
8cfa56b643 feat: implement basic virtual text (end of line blame) 2025-03-18 16:59:01 +00:00
Nik Revenco
e2cebacf33 feat: basic implementation of blocking Blame handler 2025-03-18 15:39:47 +00:00
Nik Revenco
b76ddf5d88 fix: use line of primary cursor for git blame 2025-03-18 03:12:22 +00:00
Nik Revenco
fed006456a refactor: rename to blame_line 2025-03-18 03:03:48 +00:00
Nik Revenco
e2e3ce4ea0 chore: better error message 2025-03-18 02:57:32 +00:00
Nik Revenco
0eadcd46ef fix: use relative path when finding file
style: cargo fmt

_
2025-03-18 02:47:30 +00:00
Nik Revenco
4b6690fc0a feat: implement blame command in helix-vcs 2025-03-18 01:11:57 +00:00
Michael Davis
b38eae1f98
minor: Fix native line-ending handling in trimming integration tests 2025-03-10 11:09:46 -04:00
Michael Davis
67879a1e5b
Avoid inserting final newlines in empty files
This matches the behavior described by the EditorConfig spec for its
`insert_final_newline` option:

> Editors must not insert newlines in empty files when saving those
> files, even if `insert_final_newline = true`.

Co-authored-by: Axlefublr <101342105+Axlefublr@users.noreply.github.com>
2025-03-10 10:38:11 -04:00
Michael Davis
aa20eb8e7f
Add config for trimming trailing whitespace and newlines on write
These match the equivalent options in VSCode. `trim_trailing_whitespace`
is also the name used by EditorConfig.

* `trim-final-newlines` trims any extra line endings after the final one
* `trim-trailing-whitespace` trims any trailing whitespace (but not
  empty lines)
2025-03-10 10:18:55 -04:00
Michael Davis
ee9db440ce
minor: Trim trailing whitespace in languages.toml 2025-03-10 10:18:55 -04:00
Lauri Gustafsson
296eb9be83
languages.toml: Change wgsl_analyzer to wgsl-analyzer ()
The binary name was changed in wgsl-analyzer commit
4c56b1435d30cd45d8aee52297bbf68ed5bb3beb and released in 0.9.7.
2025-03-10 08:22:49 -05:00
suza
dc4761ad3a
feat: Add SourcePawn language support () 2025-03-07 11:55:48 -06:00
Noel Cower
2d3b75a8c5
fix: render rulers before the cursor
Render rulers before the cursor to ensure that the cursor, when over
a ruler, is not hidden from view. Without this, you typically end up
with 1) foreground text that is the same as the background if the
ruler doesn't already have a foreground and 2) no visible cursor,
because the ruler's background color took precedence. By moving the
rulers before the cursor, this ensures that the theme is still rendered
more or less the way one would visually expect things to turn out.
2025-03-07 12:44:28 -05:00
Michael Davis
8da226f0b4
flake: Revert devShell linker to lld
`mold` does not appear to work on macOS as stated in the parent commit.
2025-03-07 12:06:33 -05:00
Michael Davis
fab08c0981
flake: Use mold for linking in devShell
Our `lld` was a bit out of date. Mold seems to be slightly faster
anyways and seems to work well on both Linux & macOS.
2025-03-07 09:41:48 -05:00
Michael Davis
b6e58c0fa4
flake: Split platform and common RUSTFLAGS in devShell
The `--no-rosegment` is not supported on macOS but the other flag
configurations can be used on both macOS and Linux.
2025-03-07 09:36:58 -05:00
Michael Davis
19558839b7
flake: Avoid setting HELIX_RUNTIME in devShell
The runtime directory should be correctly set without the need to set
HELIX_RUNTIME manually because we check for a runtime directory within
CARGO_MANIFEST_DIR.

This change also filters the runtime directory out of the source file
set passed to buildRustPackage since the runtime directory is not needed
at compilation time.
2025-03-06 18:40:35 -05:00
Michael Davis
c4d314d7ba
LSP: Fix offset encoding test case
Co-authored-by: Isaac Mills <rooster0055@protonmail.com>
2025-03-06 17:13:38 -05:00
Daniel Fichtinger
b423ed42f1
feat: add harper-ls LSP configuration () 2025-03-06 15:59:22 -06:00