Commit graph

6423 commits

Author SHA1 Message Date
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
Michael Davis
a3fa65880e
flake: Copy logo.svg in postInstall hook 2025-03-04 14:52:17 -05:00
Christopher Smyth
b1ee4ab5c6
Fix the git hash missing and add some more comments. () 2025-03-04 13:12:48 -06:00
Michael Davis
fbc0f956b3
minor: Move json deserialization into text_document_hover future
This follows a pattern used in the signature help request for example.
Moving the json deserialization into the return future of
`text_document_hover` makes the types easier for callers to work with.
2025-03-04 12:01:07 -05:00
Michael Davis
486f4297b7
Set cargoLock.allowBuiltinFetchGit in Nix package 2025-03-04 11:47:17 -05:00
Michael Davis
28e69f09fc
direnv: Watch changes to default.nix
Now that the package definition lives in default.nix we need direnv to
watch that file to get automatic reloads.
2025-03-04 11:31:54 -05:00
Michael Davis
ab56f9e26b
minor: Tweak some verbose LSP logs
The info log within `process_request_response` duplicated the body of
the JSON message printed earlier by the transport which was confusing.

The error log in the completion handler was easy to hit during normal
use and is not actually an error - dropping is the graceful way to
handle changes occurring while completion requests are in flight.
2025-03-04 11:25:11 -05:00
Christopher Smyth
1d453785e5
Clean up Nix Flake & make it easier to customize () 2025-03-04 10:23:28 -06:00
Erwin de Keijzer
671a6036b3
Add beans theme () 2025-03-04 10:03:46 -06:00
Alexander Brassel
82f8ac208f
Improve %% escaping error message () 2025-03-04 10:03:11 -06:00
dependabot[bot]
9440feae7c
build(deps): bump the rust-dependencies group with 11 updates ()
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-03 18:09:43 -06:00
luetage
1a28999002
Kanagawa: fix palette and attempt at a markdown compromise () 2025-03-02 11:06:59 -06:00
Michael Davis
0efa8207d8
Rewrite command line parsing, add flags and expansions ()
Co-authored-by: Pascal Kuthe <pascalkuthe@pm.me>
2025-02-26 19:50:15 -06:00
may
e1c7a1ed77
remove unnecessary allocations in switch_case () 2025-02-26 19:03:29 -06:00
Michael Davis
7bebe0a70e
Highlight file picker directories with 'ui.text.directory'
This applies the same styling as the parent commit to the file pickers.
2025-02-26 19:19:37 -05:00
Nik Revenco
682967d328
feat: Improve look of Global Search Picker ()
Co-authored-by: Poliorcetics <poliorcetics@users.noreply.github.com>
Co-authored-by: Nikita Revenco <154856872+NikitaRevenco@users.noreply.github.com>
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-02-26 18:09:57 -06:00
Mykyta
1e8774a030
Added missing CSS highlight Tree Sitter Scopes () 2025-02-26 17:51:36 -06:00
Daniel Fichtinger
c36408457a
feat(kdl): add kdlfmt as formatter for kdl () 2025-02-26 17:50:36 -06:00