AutoYADM commit: 2025-06-08 15:16:42
This commit is contained in:
parent
8796bb6b97
commit
a51cd136f6
1 changed files with 7 additions and 11 deletions
|
@ -49,9 +49,9 @@ define-command -hidden inlay-toggle %{
|
||||||
}
|
}
|
||||||
|
|
||||||
declare-option -hidden bool inlay_diagnostics_enabled false
|
declare-option -hidden bool inlay_diagnostics_enabled false
|
||||||
define-command -hidden inlay_diagnostics-on %{
|
define-command -hidden inlay-diagnostics-on %{
|
||||||
lsp-inlay-diagnostics-enable window
|
lsp-inlay-diagnostics-enable window
|
||||||
set-option window inlay-diagnostics_enabled true
|
set-option window inlay_diagnostics_enabled true
|
||||||
}
|
}
|
||||||
define-command -hidden inlay-diagnostics-off %{
|
define-command -hidden inlay-diagnostics-off %{
|
||||||
lsp-inlay-diagnostics-disable window
|
lsp-inlay-diagnostics-disable window
|
||||||
|
@ -70,7 +70,7 @@ define-command -hidden inlay-diagnostics-toggle %{
|
||||||
declare-option -hidden bool inline_diagnostics_enabled true
|
declare-option -hidden bool inline_diagnostics_enabled true
|
||||||
define-command -hidden inline-diagnostics-on %{
|
define-command -hidden inline-diagnostics-on %{
|
||||||
lsp-inline-diagnostics-enable window
|
lsp-inline-diagnostics-enable window
|
||||||
set-option window inline-diagnostics_enabled true
|
set-option window inline_diagnostics_enabled true
|
||||||
}
|
}
|
||||||
define-command -hidden inline-diagnostics-off %{
|
define-command -hidden inline-diagnostics-off %{
|
||||||
lsp-inline-diagnostics-disable window
|
lsp-inline-diagnostics-disable window
|
||||||
|
@ -95,14 +95,10 @@ define-command -hidden lsp-filetype-hooks-update %{
|
||||||
# commands to execute for lsp window settings
|
# commands to execute for lsp window settings
|
||||||
lsp-enable-window
|
lsp-enable-window
|
||||||
inlay-on
|
inlay-on
|
||||||
try %{
|
# only map to UI mode if that module is available
|
||||||
# only map to UI mode if that module is available
|
map -docstring 'toggle inlay hints' window ui h ': inlay-toggle<ret>'
|
||||||
map -docstring 'toggle inlay hints' window ui h ': inlay-toggle<ret>'
|
map -docstring 'toggle inlay diagnostics' window ui d ': inlay-diagnostics-toggle<ret>'
|
||||||
map -docstring 'toggle inlay diagnostics' window ui d ': diagnostics-toggle<ret>'
|
map -docstring 'toggle inline diagnostics' window ui e ': inline-diagnostics-toggle<ret>'
|
||||||
} catch %{
|
|
||||||
map -docstring 'toggle inlay hints' window lsp <a-h> ': inlay-toggle<ret>'
|
|
||||||
map -docstring 'toggle inlay diagnostics' window lsp <a-d> ': diagnostics-toggle<ret>'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
lsp-filetype-hooks-update
|
lsp-filetype-hooks-update
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue