01178cca61
Merge remote-tracking branch 'kirawi/trailing-whitespace'
2025-02-27 18:42:14 +01:00
2e2c5b1d14
Merge remote-tracking branch 'upstream/master'
2025-02-27 18:30:10 +01:00
Michael Davis
0efa8207d8
Rewrite command line parsing, add flags and expansions ( #12527 )
...
Co-authored-by: Pascal Kuthe <pascalkuthe@pm.me>
2025-02-26 19:50:15 -06:00
may
e1c7a1ed77
remove unnecessary allocations in switch_case ( #12786 )
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 ( #12855 )
...
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
David Vogt
c98302a543
feat(lsp): add container name as a column in the symbol pickers ( #12930 )
2025-02-26 17:28:34 -06:00
Roberto Vidal
0ba2e05a6f
fix: escape percent character when yanking to search register ( #12886 )
...
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-02-26 17:22:41 -06:00
Michael Davis
fcddd50325
Set theme before opening documents
...
This is not consequential now but when we switch to the new highlighter
we will want the theme to be set (and the loader's `scopes` to be set
based on the theme) before parsing a document. Previously `set_theme`
came after the loading of documents, so documents would be missing
locals highlights after being loaded and before the first edit.
2025-02-26 10:49:36 -05:00
750304a838
Merge remote-tracking branch 'nikitarevenco/toggle-diagnostics'
2025-02-25 22:17:32 +01:00
038fe9d331
Merge remote-tracking branch 'nikitarevenco/render-helix'
2025-02-25 22:17:24 +01:00
e71bbf72fe
Merge remote-tracking branch 'nikitarevenco/colored-grep'
2025-02-25 22:17:15 +01:00
544c8a9a70
Merge remote-tracking branch 'nikitarevenco/merge-statusline-cmdline'
2025-02-25 22:16:59 +01:00
9796951648
Merge remote-tracking branch 'nikitarevenco/powerful-file-explorer'
2025-02-25 22:16:29 +01:00
ff00ebea8a
Merge remote-tracking branch 'RoloEdits/icons-v2'
2025-02-25 22:16:15 +01:00
Sofus Addington
46b6ddfc49
Separate publish and pull diagnostic provider
2025-02-25 06:00:48 +01:00
Sofus Addington
d5c6f805cf
Pull diagnostics
2025-02-25 06:00:48 +01:00
dependabot[bot]
35575b0b0f
build(deps): bump the rust-dependencies group with 6 updates ( #12956 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-24 18:05:24 -06:00
Nikita Revenco
674afbfd89
refactor: inversion of control
2025-02-22 13:31:35 +00:00
Nikita Revenco
59a1d244aa
refactor: rename vars
2025-02-22 13:12:21 +00:00
Michael Davis
3d7e2730e7
Read language servers from config in :lsp-restart
...
`:lsp-stop` should consider only the set of active language servers for
a document. `:lsp-restart` though may be used to start up a language
server that crashed or was manually stopped, so it needs to consider the
language servers in config instead.
This change inlines the `valid_lang_servers` function into `:lsp-stop`
and `:lsp-restart` and changes `:lsp-restart` to check the doc's config
rather than active language servers. `:lsp-restart` now also does not
need to clone the language server names as strings since it borrows from
the config and arguments rather than `Document`. The completer has also
been split into two - one matching active language servers, used by
`:lsp-stop`, and the other matching configured language servers, used by
`:lsp-restart`.
This also removes the part of `:lsp-restart` which bailed if a language
server failed to be restarted (for example because it is not installed).
There might be multiple language servers configured for a language and
only one installed. In that case the `:lsp-restart` should be considered
successful even if not all servers could be started. Bailing prevented
any language servers which could start from being attached to the
document. Instead errors are collected and emitted at the end.
2025-02-20 12:50:09 -05:00
Nikita Revenco
7a52c3f0bf
fix: delete directories
2025-02-20 17:24:59 +00:00
Michael Davis
e0da129727
Use custom titles for register select info boxes
...
Previously all register selection info boxes had "Registers" as the
title. That was particularly confusing for `copy_between_registers`
which presents two info boxes back-to-back.
2025-02-19 10:29:15 -05:00
Michael Davis
b8912adbbf
Use a Cow<'static, str>
for the Info component title
...
Some uses of the component (like for register) provide a static title.
We can trivially avoid the title allocation in those cases.
2025-02-19 10:10:55 -05:00
Nikita Revenco
488e9552fd
refactor: use type aliases instead of fully writing out the type
2025-02-18 17:02:41 +00:00
Nikita Revenco
fae93aa308
refactor: move statement elsewhere
2025-02-18 17:02:10 +00:00
Nikita Revenco
a6e110937b
refactor: do not explicitlys specify the types everywhere
2025-02-18 16:57:45 +00:00
Nikita Revenco
984ad4bca9
refactor: pass EditorData to callbacks, do not "compute" the root
2025-02-18 16:49:00 +00:00
Nikita Revenco
67ca955baa
refactor: extract into a function
2025-02-18 15:53:56 +00:00
Nikita Revenco
f193705ca7
feat: add main separator when showing current file's directory
2025-02-18 15:38:56 +00:00
Nikita Revenco
7fdf2ba92a
refactor: simplify function
2025-02-18 15:20:34 +00:00
Nikita Revenco
eb35b604b5
fix: remove previous pickers when refreshing the current one
2025-02-18 15:17:01 +00:00
Nikita Revenco
ed570d9f45
fix: use MAIN_SEPARATOR instead of just unix separator
2025-02-18 15:02:38 +00:00
Nikita Revenco
a9612dad1d
refactor: extract into a type alias
2025-02-18 14:52:49 +00:00
Nikita Revenco
6dbb09f1fa
style: format mod.rs
2025-02-18 14:45:13 +00:00
Nikita Revenco
e6e80e2185
fix: remove unneeded panics
2025-02-18 14:27:11 +00:00
Nikita Revenco
a97ebc2ed0
style: format
2025-02-18 14:17:31 +00:00
Nikita Revenco
4fabd7927d
refactor: remove unneeded macro
2025-02-18 14:08:16 +00:00
Nikita Revenco
24bd14863b
feat: restore cursor when performing file operations
2025-02-18 14:04:10 +00:00
Nikita Revenco
9227267aa3
chore: remove TODO comment
2025-02-18 13:52:09 +00:00
Nikita Revenco
8eac1c2721
feat: refresh picker when directory operations are performed
2025-02-18 13:11:37 +00:00
Nikita Revenco
fac6c7c1a6
chore: appease clippy
2025-02-18 12:38:27 +00:00
Nikita Revenco
b6bbd4f18a
fix: delete path, not confirmation e.g. y
2025-02-18 12:38:11 +00:00
Nikita Revenco
6a558be7b3
feat: better initial prompts when using file picker commands
2025-02-18 12:36:54 +00:00
Nikita Revenco
0e6e3e8aeb
refactor: rename variable
2025-02-18 12:24:45 +00:00
Nikita Revenco
cd6584f0ab
chore: appease clippy
2025-02-18 12:20:37 +00:00
Nikita Revenco
382803c803
feat: add confirmation prompt when overwriting
2025-02-18 12:15:35 +00:00
Nikita Revenco
e177c48208
refactor: use Option<Result> to indicate if a status message should not be changed
2025-02-18 11:42:03 +00:00
Nikita Revenco
a099ae1dbe
style: formatting
2025-02-18 11:33:01 +00:00
Nikita Revenco
eafd8ace18
style: formatting
2025-02-18 11:28:30 +00:00