Add a way to toggle inlay hints with modifiers (#25752)

This commit is contained in:
Kirill Bulatov
2025-02-27 17:53:10 +02:00
committed by GitHub
parent 2e98bc17cb
commit e8ef36edcc
10 changed files with 101 additions and 9 deletions
+10 -1
View File
@@ -398,7 +398,16 @@
"edit_debounce_ms": 700,
// Time to wait after scrolling the buffer, before requesting the hints,
// set to 0 to disable debouncing.
"scroll_debounce_ms": 50
"scroll_debounce_ms": 50,
/// A set of modifiers which, when pressed, will toggle the visibility of inlay hints.
/// If the set if empty or not all the modifiers specified are pressed, inlay hints will not be toggled.
"toggle_on_modifiers_press": {
"control": false,
"shift": false,
"alt": false,
"platform": false,
"function": false
}
},
"project_panel": {
// Whether to show the project panel button in the status bar