feat: add configurable editor idle actions hover and highlight_references

closes #370
This commit is contained in:
CJ van den Berg 2025-11-07 13:37:07 +01:00
parent 06e967a69d
commit 6e78564599
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 18 additions and 2 deletions

View file

@ -19,6 +19,8 @@ inline_diagnostics: bool = true,
animation_min_lag: usize = 0, //milliseconds
animation_max_lag: usize = 50, //milliseconds
hover_time_ms: usize = 500, //milliseconds
input_idle_time_ms: usize = 150, //milliseconds
idle_actions: []IdleAction = &.{},
enable_format_on_save: bool = false,
restore_last_cursor_position: bool = true,
follow_cursor_on_buffer_switch: bool = false, //scroll cursor into view on buffer switch
@ -46,6 +48,11 @@ lsp_output: enum { quiet, verbose } = .quiet,
include_files: []const u8 = "",
pub const IdleAction = enum {
hover,
highlight_references,
};
pub const DigitStyle = enum {
ascii,
digital,