# {{@@ header() @@}} hook global NormalIdle .* %{ try %{ git show-diff palette-status } } hook global BufOpenFile .* %{ modeline-parse lsp-enable } #completion with tab hook global InsertCompletionShow .* %{ try %{ execute-keys -draft 'h\h' map window insert map window insert } } hook global InsertCompletionHide .* %{ unmap window insert unmap window insert } hook global RegisterModified '"' %{ nop %sh{ printf %s "$kak_main_reg_dquote" | wl-copy > /dev/null 2>&1 & }} # Trim trailing whitespace hook global BufWritePre .* %{ try %{ execute-keys -draft \%s\h+$d } }