helix/helix-term/src
Michael Davis 633c5fbf0f
Update language loader before refreshing theme in `:config-reload`
Since locals are handled during parsing instead of highlighting with
tree-house, we need to call `helix_core::syntax::Loader::set_scopes`
before parsing any documents. During `:config-reload` we previously
reloaded the `Loader` and re-parsed documents and _then_ updated the
theme. So documents were parsed before `Loader::set_scopes` was called
on the new loader.

With this change the `refresh_language_config` helper is inlined into
`refresh_config`. Updating the `Editor`'s `ArcSwap` of the loader is
done before updating the theme so that the `load_configured_theme`
helper can call `set_scopes` with on the new loader.
2025-06-08 15:05:22 -04:00
..
commands Fix command line completion replacement for quoted items 2025-05-31 09:56:54 -04:00
handlers syntax: Move config types to a separate module 2025-05-13 18:30:21 -04:00
keymap Add goto_column and extend_to_column commands (#13440) 2025-05-01 09:12:30 -05:00
ui Add file indentation style for statusline (#13632) 2025-05-29 08:20:22 -05:00
application.rs Update language loader before refreshing theme in `:config-reload` 2025-06-08 15:05:22 -04:00
args.rs feat: passing multile of the same files in the arguments places a cursor at each position (#12192) 2025-01-23 14:04:02 -06:00
commands.rs Add `rotate_selections_{first,last}` commands (#13615) 2025-06-06 15:08:41 -05:00
compositor.rs Do not record keys pressed by macros while recording a macro (#12733) 2025-01-30 18:14:04 -06:00
config.rs feat: smart_tab 2023-08-01 09:41:42 -05:00
events.rs Add document and LSP lifecycle events, move some callbacks into hooks 2025-03-22 11:41:50 -04:00
handlers.rs Color swatches ( 🟩 green 🟥 #ffaaaa ) (#12308) 2025-03-23 16:07:02 -05:00
health.rs health: Use lsp name in output wherever possible (#13573) 2025-05-21 09:38:16 -05:00
job.rs Add hook/event system 2024-01-23 11:20:19 +09:00
keymap.rs Rewrite command line parsing, add flags and expansions (#12527) 2025-02-26 19:50:15 -06:00
lib.rs fix(lints): clippy 1.84 2025-01-23 15:18:16 -05:00
main.rs feat: passing multile of the same files in the arguments places a cursor at each position (#12192) 2025-01-23 14:04:02 -06:00