AutoYADM commit: 2025-06-28 23:30:15

This commit is contained in:
Daniel Fichtinger 2025-06-28 23:30:15 -04:00
parent 1b275b6905
commit 53e52d8772
4 changed files with 143 additions and 144 deletions

View file

@ -6,9 +6,6 @@
hook global BufCreate .*[.](jsonc) %{
set-option buffer filetype jsonc
set-option buffer comment_line //
set-option buffer comment_block_begin /*
set-option buffer comment_block_end */
}
# Initialization
@ -16,6 +13,9 @@ hook global BufCreate .*[.](jsonc) %{
hook global WinSetOption filetype=jsonc %{
require-module jsonc
set-option buffer comment_line //
set-option buffer comment_block_begin /*
set-option buffer comment_block_end */
hook window ModeChange pop:insert:.* -group jsonc-trim-indent jsonc-trim-indent
hook window InsertChar .* -group jsonc-indent jsonc-indent-on-char

View file

@ -223,22 +223,21 @@ alias global t cwd-terminal
map global normal <backspace> '"_'
define-command goto-debug %{
buffer *debug*
try %{
buffer *debug*
ui-scrolloff-disable
execute-keys 'gj'
}
}
declare-user-mode debug
map -docstring 'open debug buffer' global debug d ':goto-debug<ret>'
map -docstring 'open debug buffer' global user D ': enter-user-mode debug<ret>'
map -docstring 'open debug buffer' global user d ':goto-debug<ret>'
define-command exec-selection %{
execute-keys ':<c-r>.<ret>'
}
map -docstring 'execute selection' global debug x ': exec-selection<ret>'
define-command repl %{
new %{ edit -scratch; set buffer filetype kak }
}