Michael Davis
61491af15e
Remove unused Result wrapper for Path->Url conversion
2024-12-20 13:33:47 -05:00
Michael Davis
a36806e326
Handle conversion to/from new LSP URL type
2024-12-20 13:33:46 -05:00
Michael Davis
b84c9a893c
Replace url::Url
with a String wrapper
2024-12-20 13:33:46 -05:00
Michael Davis
652e316925
LSP: Use PathBufs for workspace folders
...
Internally the LSP client should hold workspace folders as paths. Using
URLs for this type is inconvenient (since we compare it to paths) and
might cause mismatches because of URLs not being normalized. The URLs
must be paths anyways so we can convert these types lazily when we need
to send them to a server.
2024-12-20 13:33:46 -05:00
Nikita Revenco
ba6e6dc3dd
Colors for items in the completion menu ( #12299 )
2024-12-20 10:16:15 -06:00
cornishon
a91263d604
Odin textobjects ( #12302 )
...
Co-authored-by: Adam Zadrożny <zadroznyadam@protonmail.com>
2024-12-20 09:59:28 -06:00
Ian Hobson
06d0f33c94
Add Koto language support ( #12307 )
2024-12-20 09:56:13 -06:00
Eduardo Rittner Coelho
eaff0c3cd6
Document diagnostic severity levels ( #12306 )
2024-12-20 09:47:06 -06:00
uncenter
1e9412269a
Sync Catppuccin theme changes ( #12304 )
2024-12-20 09:43:45 -06:00
Nikita Revenco
355e381626
feat: use ui.text.directory
for path completion item if its a folder ( #12295 )
2024-12-19 14:36:54 -06:00
Tobias Hunger
cbc06d1f15
chore: Update slint tree-sitter grammar to version 1.9 ( #12297 )
2024-12-19 10:16:12 -06:00
Eduardo Rittner Coelho
9e4da4b950
Show parser availability in --health [LANG] ( #12228 )
2024-12-18 11:21:58 -06:00
Christian Schneider
13e5a2ee5a
Outdent array literals for php [] ( #12286 )
...
Co-authored-by: Christian Schneider <schneider@search.ch>
2024-12-18 08:52:20 -06:00
David Else
0134bb7063
Update dark_plus theme for inactive text and improve jump label ( #12289 )
2024-12-18 08:32:41 -06:00
Peter Ingram
ec65cc4913
Adds colored directories to everforest themes ( #12287 )
...
Co-authored-by: Peter Ingram <p.ingram@mrx.technology>
2024-12-18 08:31:40 -06:00
Nikita Revenco
91a5d407da
Allow theming directory prompt completions ( #12205 )
2024-12-17 21:13:42 -06:00
Michael Davis
6eb186eb7b
helix-lsp-types: use bitflags::bitflags
rather than extern crate
...
This seems to be a historical artifact in `lsp_types` - we can use a
regular `use` statement to pull in the `bitflags!` macro rather than
an external crate definition. This fixes rust-analyzer's ability to find
the macro at least on rust-analyzer 2024-02-26.
2024-12-17 15:42:36 -05:00
Michael Davis
1980bd5992
helix-lsp-types: Prefer crate::Url
to url::Url
...
This is a cosmetic change to replace all direct `use`s of the `url::Url`
type in the `helix-lsp-types` crate with `use crate::Url;`. The types
are the same type currently: this refactor will make a future
replacement of the Url type less noisy.
Connects https://github.com/helix-editor/helix/pull/11889
2024-12-17 15:42:28 -05:00
Tim Sampson
cc3b77b584
dockerfile: bump tree-sitter grammar to gain support for heredocs ( #12230 )
2024-12-17 13:26:49 -06:00
Christian Schneider
fcded6ce1e
Trim trailing colons from paths to allow copy/pasting git grep -n output ( #9963 )
...
Co-authored-by: Christian Schneider <schneider@search.ch>
2024-12-17 13:02:06 -06:00
Pascal Kuthe
1badd9e434
implement snippet tabstop support
2024-12-17 13:34:40 -05:00
Pascal Kuthe
66fb1e67c0
add fallback onNextKey
...
adds a variant of on_next_key callbacks that are only called when no other
mapping matches a key
2024-12-17 13:34:40 -05:00
Pascal Kuthe
609c29bf7e
add DocumentFocusLost event
2024-12-17 13:34:40 -05:00
Pascal Kuthe
5537e68b5e
add changes
and ghost_transaction
to DocumentDidChange events
2024-12-17 13:34:40 -05:00
Pascal Kuthe
c8c0d04168
add snippet system to helix core
2024-12-17 13:34:39 -05:00
Pascal Kuthe
db959274d4
Add range type to helix stdx
2024-12-17 13:34:39 -05:00
dependabot[bot]
312c64f0c2
build(deps): bump the rust-dependencies group with 10 updates ( #12277 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-16 18:48:13 -06:00
André Sá
67535804a5
Fix build from source with Spade tree-sitter grammar ( #12276 )
2024-12-16 14:44:28 -06:00
Michael Davis
bae6a58c3c
Add block-comment-tokens configuration for Java
...
Ref https://github.com/helix-editor/helix/pull/12266#issuecomment-2546370787
2024-12-16 14:02:35 -05:00
Integral
250d9fa8fe
Avoid allocating the --help
message ( #12243 )
2024-12-16 11:16:48 -06:00
Aaalibaba
3b36cf1a15
Expand tildes in :read
command ( #12271 )
2024-12-16 11:10:35 -06:00
Nikita Revenco
99fdbce566
docs: remove mention that -
requires special handling ( #12250 )
2024-12-16 10:01:14 -06:00
David Else
9b14750e56
Add ltex-ls-plus language server ( #12251 )
2024-12-16 09:37:49 -06:00
TornaxO7
4e5b0644a2
language: add comment token for java files ( #12266 )
2024-12-16 09:24:04 -06:00
Takumi Matsuura
e14c346ee7
Fix panic in kill_to_end_of_line
when handling multibyte characters ( #12237 )
2024-12-13 14:04:52 -06:00
RoloEdits
617f538d41
feat(highlights): add COMPLIANCE
to error
( #12244 )
2024-12-13 13:26:08 -06:00
Yuki Kobayashi
ce133a2889
languages(v): use vlang/v-analyzer instead of v-analyzer/v-analyzer ( #12236 )
...
* use vlang/v-analyzer instead of v-analyzer/v-analyzer
* revert rev, because CI failed (couldn't repro working query-check locally, so not sure if this will work)
2024-12-13 12:09:24 +09:00
TornaxO7
89a7cde2f0
Fix continuing comment token for first line ( #12215 )
2024-12-10 13:24:34 -06:00
TornaxO7
51ac3e05e0
doc: fix default value in doc for continue-comments
( #12235 )
2024-12-10 13:19:31 -06:00
TornaxO7
5005c14e99
Add config option for continue commenting ( #12213 )
...
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2024-12-09 17:31:41 -06:00
Michael Davis
2f74530328
helix-lsp-types: Remove Cargo.lock
...
This lockfile is unused since this crate was added to the workspace and
can be removed.
Closes #12227
2024-12-09 17:14:38 -05:00
Tshepang Mbambo
a1a5faebef
typo ( #12224 )
2024-12-09 12:23:30 -06:00
Nikita Revenco
db1d84256f
fix: report correct amount of files opened and improved error message when Helix can't parse directory as file ( #12199 )
...
* feat: improve information on the amount of files loaded
* refactor: naming consitency Doc and not Buf
* fix: correct name of method
* chore: appease clippy
* feat: more human error information when Helix cannot start
* refatcor: use if guard on match arm
2024-12-08 20:14:29 +09:00
Michael Davis
271c32f2e6
Support bindings with the Super (Cmd/Win/Meta) modifier ( #6592 )
...
Terminals which support the enhanced keyboard protocol send events for
keys pressed with the Super modifier (Windows/Linux key or the Command
key). The only changes that are needed to support this in Helix are:
* Mapping the modifier from crossterm's KeyModifiers to Helix's
KeyModifiers.
* Representing and parsing the modifier from the KeyEvent text
representation.
* Documenting the ability to remap it.
When writing keybindings, use 'Meta-', 'Cmd-' or 'Win-' which are all
synonymous. For example:
[keys.normal]
Cmd-s = ":write"
will trigger for the Windows or Linux keys and the Command key plus 's'.
2024-12-08 12:35:14 +09:00
Tomas Zemanovic
fc9968bd4b
fix: allow to parse "-" as a key code ( #12191 )
...
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2024-12-06 08:46:38 -06:00
Michael Davis
28953ef40f
Simplify change_current_directory
and remove extra allocs
2024-12-05 18:50:31 -05:00
Nikita Revenco
93deb1f6ae
feat: :cd -
changes to the previous working directory ( #12194 )
...
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2024-12-05 17:40:37 -06:00
Allemand Instable
a6f80c5bd9
Fix mojo LSP configuration to conform to magic introduction ( #12195 )
...
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2024-12-05 16:54:10 -06:00
David Crespo
cd1f6e8239
Add static commands to documentation ( #11950 )
...
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
2024-12-05 11:13:00 -06:00
Michael Davis
fd3e889927
Add integration tests for line comment continuation
2024-12-05 20:53:53 +09:00