AutoYADM commit: 2025-07-24 21:27:16

This commit is contained in:
Daniel Fichtinger 2025-07-24 21:27:16 -04:00
parent 17f53c7772
commit 419dceb1c9
2 changed files with 16 additions and 15 deletions

View file

@ -172,21 +172,22 @@ define-command lsp-enter %{
define-command lsp-off %{
lsp-disable-window
rmhooks window dynamic-inline-diags
}
map global user l ': lsp-enter<ret>' -docstring 'LSP'
map -docstring 'lsp off' global user <a-l> ': try lsp-off<ret>'
define-command -hidden lsp-filetype-hooks-update %{
try %{ remove-hooks global lsp-filetypes }
# convert the str-list into regex of form (a|b|c|...)
hook -group lsp-filetypes global WinSetOption %exp~filetype=%sh{
printf '%s\n' "($kak_opt_lsp_filetypes)" | sed 's/ /|/g'
}~ %{
lsp-on
}
}
lsp-filetype-hooks-update
# define-command -hidden lsp-filetype-hooks-update %{
# try %{ remove-hooks global lsp-filetypes }
# # convert the str-list into regex of form (a|b|c|...)
# hook -group lsp-filetypes global WinSetOption %exp~filetype=%sh{
# printf '%s\n' "($kak_opt_lsp_filetypes)" | sed 's/ /|/g'
# }~ %{
# lsp-on
# }
# }
# lsp-filetype-hooks-update
hook global WinSetOption lsp_filetypes=.* lsp-filetype-hooks-update
hook global BufSetOption lsp_filetypes=.* lsp-filetype-hooks-update