AutoYADM commit: 2025-05-21 17:16:39

This commit is contained in:
Daniel Fichtinger 2025-05-21 17:16:39 -04:00
parent bdd34c0a6b
commit eec0ac0db8
2 changed files with 14 additions and 6 deletions

View file

@ -14,13 +14,18 @@ map global object t '<a-semicolon>lsp-object Class Interface Struct<ret>' -docst
map global object d '<a-semicolon>lsp-diagnostic-object --include-warnings<ret>' -docstring 'LSP errors and warnings'
map global object D '<a-semicolon>lsp-diagnostic-object<ret>' -docstring 'LSP errors'
# set-option global lsp_auto_highlight_references false
set-option global lsp_auto_show_code_actions true
set-option global lsp_code_action_indicator ''
# override the code actions icon in the modeline
define-command -hidden -override lsp-show-code-actions -params 1.. %{
set-option buffer lsp_modeline_code_actions ""
}
define-command -hidden -override lsp-hide-code-actions %{
set-option buffer lsp_modeline_code_actions ""
}
# Server Config
set-option global lsp_debug false
lsp-inlay-hints-enable global
# TODO: set up toggle binding for this
# or even better, show them on hover...?
# lsp-inlay-diagnostics-enable global
remove-hooks global lsp-filetype-python
@ -37,7 +42,7 @@ hook -group lsp-filetype-python global BufSetOption filetype=python %{
}
}
# remove-hooks global lsp-filetype-fish
# use our custom fish-lsp wrapper because it sets env vars
hook -group lsp-filetype-fish global BufSetOption filetype=fish %{
set-option buffer lsp_servers %{
[fish-lsp]