Commit graph

6380 commits

Author SHA1 Message Date
Jean Abou Samra
9cc056e755
fix (hx --health): Don't print headers in white (#12355) 2024-12-29 10:38:28 -06:00
Karim Abou Zeid
6d07ae4f07
add uv shebang for python (#12360) 2024-12-28 20:44:26 -06:00
Michael Davis
073efe48f9
minor: Setup default keymap directly in xtask docgen
Instantiating EditorView is a lot of machinery which is unnecessary:
the default keymap is exposed through the `default` function in the
keymap module.
2024-12-28 21:42:09 -05:00
Michael Davis
127567df8e
docs: Fix dead links to tree-sitter docs
tree-sitter now uses mdbook for their docs and the switch adds a chapter
number to each section, so each link to the website needs an update.
2024-12-28 09:05:48 -05:00
{{david|odenwald}}
4b288e4de7
languages: add block comment tokens for jinja and nunjucks (#12348)
Co-authored-by: David Odenwald <daod@solute.de>
2024-12-28 07:44:41 -06:00
RoloEdits
19c91dfb80
fix: string literals with format args not in format! (#12354) 2024-12-28 07:44:16 -06:00
65628d53e4
Merge remote-tracking branch 'color-swatches/textDocument/documentColor' 2024-12-27 21:42:33 +01:00
018f64124f
Merge remote-tracking branch 'helix-pull/pull-diagnostics' 2024-12-27 21:39:29 +01:00
b7b36780b5
Merge remote-tracking branch 'upstream/master' 2024-12-27 21:32:48 +01:00
Sofus Addington
74a9e9e425
Pull diagnostics 2024-12-27 19:07:14 +01:00
uncenter
a5a7cff311
Improve tsq/tree-sitter-query language support (#12148) 2024-12-27 08:57:53 -06:00
e70ebf7df4
Merge remote-tracking branch 'upstream/master' 2024-12-26 23:36:52 +01:00
Nikita Revenco
ffb2ae336e docs: improve description of what the calculate range inline method does 2024-12-25 18:44:55 +00:00
Nikita Revenco
aca9b4f158 refactor: inline_annotations_range moved to be on Document 2024-12-25 18:36:42 +00:00
Nikita Revenco
67552f6aa2 refactor: rename function
refactor: rename function
2024-12-25 18:29:31 +00:00
Nikita Revenco
db8ac503f4 refactor: rename several variables 2024-12-25 18:21:55 +00:00
Nikita Revenco
74b5705f65 perf: use a single iteration over the views of a document 2024-12-25 18:08:58 +00:00
0rphee
7b9b9329b9
Make git revision available for nix flake builds (#12331) 2024-12-25 11:26:53 -06:00
Michael Davis
c262fe41ab
Consistently replace line-endings in paste/replace commands
Previously we replaced line-endings in pasted text to the document
line-ending for some values in paste commands. We missed the `repeat`
values in paste though and didn't do any replacement in the replace
command.

Along with this change I've refactored the replace command to avoid
intermediary collections. We previously eagerly collected the values
from the input register as a `Vec<String>` but we can avoid both of
those conversions and only allocate for the conversion to a `Tendril`.
We can also switch from `str::repeat` to a manual implementation to
avoid the intermediary conversion to a String - this avoids an extra
allocation in the common case (i.e. no count).

Fixes #12329
2024-12-25 11:38:44 -05:00
dependabot[bot]
a074129f9c
build(deps): bump the rust-dependencies group with 7 updates (#12327)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2024-12-25 10:05:50 -06:00
Bryce Berger
eda96cc285
Add diff injections for jjdescription tree-sitter (#12305) 2024-12-25 09:35:34 -06:00
DiegoDev
c63616b421
docs: Mention sudo in macports installation snippet (#12336) 2024-12-25 09:23:56 -06:00
Nikita Revenco
faf0eee3c9
feat: Highlight = and ; in .proto files (#12339) 2024-12-25 09:06:14 -06:00
Clay
a2b241eb08
chore: update tree-sitter-heex to version 0.7.0 (#12334) 2024-12-25 10:31:57 +09:00
Nikita Revenco
0fd4a4aae2
feat: Nginx support (#12309)
Co-authored-by: Denis Gruzdev <codingjerk@gmail.com>
2024-12-24 13:22:29 -06:00
Pedro Fedricci
9e77c44b38
feat(themes): add ui.text.directory to nightfox (#12328) 2024-12-23 20:26:16 -06:00
Denys Rybalka
52a9cef7b0
Style directories in file browser 2024-12-23 23:59:28 +01:00
Denys Rybalka
0b01885059
Add file_browser for cwd and workspace root 2024-12-23 18:59:40 +01:00
Denys Rybalka
123378462b
Do not resolve symlinks in file browser 2024-12-23 18:59:40 +01:00
Denys Rybalka
006359c37f
Distinguish dirs visually in file_browser 2024-12-23 18:59:40 +01:00
Denys Rybalka
ff833b79e7
Open file browser in cwd when no buffer path 2024-12-23 18:59:40 +01:00
Denys Rybalka
268eac8c00
Open file browser in buffer's directory 2024-12-23 18:59:40 +01:00
Denys Rybalka
7902fc5631
Add parent folder to file browser 2024-12-23 18:59:40 +01:00
Denys Rybalka
02edda12e9
Pass directory content into picker directly 2024-12-23 18:59:40 +01:00
Denys Rybalka
bb1722a528
Implement opening of folders 2024-12-23 18:59:40 +01:00
Denys Rybalka
b1dcd96ab5
Add file browser 2024-12-23 18:59:39 +01:00
Nikita Revenco
7c40fbf555 chore: apply suggestion from clippy lint 2024-12-23 15:41:13 +00:00
Nikita Revenco
d120a35740 feat: use padding for color swatches 2024-12-23 13:57:52 +00:00
Nikita Revenco
ca5c96b982 refactor: use let else statement 2024-12-23 13:54:12 +00:00
Nikita Revenco
cd9512cbce refactor: use let else statement 2024-12-23 13:45:57 +00:00
Nikita Revenco
c7520c3550 refactor: rename variable 2024-12-23 13:43:10 +00:00
Nikita Revenco
6db63d4632 refactor: use let else statement 2024-12-23 13:41:28 +00:00
Nikita Revenco
54ff7a561f
refactor: check for is_none
Co-authored-by: TornaxO7 <tornax@proton.me>
2024-12-23 13:36:59 +00:00
Michael Davis
ea17b9edb7
release docs: Fix git push command for the release tag
Git can be configured to push tags with `push.followTags` but this is
not the default. Pushing the tag explicitly with `git push <remote>
<tag>` is generally considered safer anyways since it only attempts to
push the desired tag.
2024-12-22 09:48:32 -05:00
Michael Davis
4f63a46e14
minor: Remove redundant condition in shell pipe trimming
`output.ends_with('\n')` implies `!output.is_empty()`

Connects #11183
2024-12-22 09:42:37 -05:00
Nikita Revenco
ac4c017165
feat: autohelp for delete, replace and add surrounds (#12262) 2024-12-22 08:17:44 -06:00
Maurice Hieronymus
b946b21b01
fix: Respect workspace-lsp-roots on doc opening (#12223)
When a new language server is started, find_lsp_workspace is called
with LanguageConfiguration::workspace_lsp_roots as the root_dirs.

This behavior is different when a new document is opened.
find_lsp_workspace is called with editor::Config::workspace_lsp_roots
which is never set.

This leads to a bug where workspace-lsp-roots is not respected when
opening a new document. This commit fixes this bug.
2024-12-22 08:08:41 -06:00
Nikita Revenco
ba6e6dc3dd
Colors for items in the completion menu (#12299) 2024-12-20 10:16:15 -06:00
Nikita Revenco
5f59c191f5 refactor: merge into one statement 2024-12-20 16:10:41 +00:00
Michael Davis
e25fcfc590
style - replace use with qualified path 2024-12-20 11:10:00 -05:00