AutoYADM commit: 2025-07-24 21:27:16
This commit is contained in:
parent
17f53c7772
commit
419dceb1c9
2 changed files with 16 additions and 15 deletions
|
@ -172,21 +172,22 @@ define-command lsp-enter %{
|
||||||
|
|
||||||
define-command lsp-off %{
|
define-command lsp-off %{
|
||||||
lsp-disable-window
|
lsp-disable-window
|
||||||
|
rmhooks window dynamic-inline-diags
|
||||||
}
|
}
|
||||||
|
|
||||||
map global user l ': lsp-enter<ret>' -docstring 'LSP'
|
map global user l ': lsp-enter<ret>' -docstring 'LSP'
|
||||||
map -docstring 'lsp off' global user <a-l> ': try lsp-off<ret>'
|
map -docstring 'lsp off' global user <a-l> ': try lsp-off<ret>'
|
||||||
|
|
||||||
define-command -hidden lsp-filetype-hooks-update %{
|
# define-command -hidden lsp-filetype-hooks-update %{
|
||||||
try %{ remove-hooks global lsp-filetypes }
|
# try %{ remove-hooks global lsp-filetypes }
|
||||||
# convert the str-list into regex of form (a|b|c|...)
|
# # convert the str-list into regex of form (a|b|c|...)
|
||||||
hook -group lsp-filetypes global WinSetOption %exp~filetype=%sh{
|
# hook -group lsp-filetypes global WinSetOption %exp~filetype=%sh{
|
||||||
printf '%s\n' "($kak_opt_lsp_filetypes)" | sed 's/ /|/g'
|
# printf '%s\n' "($kak_opt_lsp_filetypes)" | sed 's/ /|/g'
|
||||||
}~ %{
|
# }~ %{
|
||||||
lsp-on
|
# lsp-on
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
lsp-filetype-hooks-update
|
# lsp-filetype-hooks-update
|
||||||
|
|
||||||
hook global WinSetOption lsp_filetypes=.* lsp-filetype-hooks-update
|
hook global WinSetOption lsp_filetypes=.* lsp-filetype-hooks-update
|
||||||
hook global BufSetOption lsp_filetypes=.* lsp-filetype-hooks-update
|
hook global BufSetOption lsp_filetypes=.* lsp-filetype-hooks-update
|
||||||
|
|
|
@ -75,11 +75,11 @@ alias global pp popup-shell
|
||||||
map -docstring 'popup shell' global user . ': popup-shell<ret>'
|
map -docstring 'popup shell' global user . ': popup-shell<ret>'
|
||||||
require-module ui-mode
|
require-module ui-mode
|
||||||
|
|
||||||
try %{
|
# try %{
|
||||||
evaluate-commands %sh{kak-lsp-diags}
|
# evaluate-commands %sh{kak-lsp-diags}
|
||||||
map -docstring 'enable diagnostic hover' global ui "'" ': lsp-diag-hover-enable<ret>'
|
# map -docstring 'enable diagnostic hover' global ui "'" ': lsp-diag-hover-enable<ret>'
|
||||||
map -docstring 'disable diagnostic hover' global ui '"' ': lsp-diag-hover-disable<ret>'
|
# map -docstring 'disable diagnostic hover' global ui '"' ': lsp-diag-hover-disable<ret>'
|
||||||
}
|
# }
|
||||||
|
|
||||||
define-command -docstring "New terminal in cwd" cwd-terminal %{
|
define-command -docstring "New terminal in cwd" cwd-terminal %{
|
||||||
terminal fish
|
terminal fish
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue