kak: update filetypes

This commit is contained in:
lelgenio 2021-06-15 02:19:05 -03:00
parent 9925ddaa97
commit 88880cf44d
2 changed files with 3 additions and 3 deletions

View File

@ -58,6 +58,7 @@ hook global WinSetOption filetype=jsonc %[
hook global WinSetOption filetype=blade %[
set buffer formatcmd 'blade-formatter --stdin'
set-option buffer extra_word_chars '_' '-'
hook window ModeChange pop:insert:.* -group blade-trim-indent blade-trim-indent
hook window InsertChar .* -group blade-indent blade-indent-on-char
@ -79,8 +80,7 @@ hook global WinSetOption filetype=blade %[
set-option buffer comment_block_begin '{{-- '
set-option buffer comment_block_end ' --}}'
map buffer user 'c' '_: comment-block<ret>' -docstring 'comment block'
]
try %§

View File

@ -18,7 +18,7 @@ map global user 'm' ': try format-buffer catch lsp-formatting<ret>' -docstring '
map global user 'M' ': try format-selections catch lsp-range-formatting<ret>' -docstring 'format selection'
map global user 'c' ': comment-line<ret>' -docstring 'comment line'
map global user 'C' ': comment-block<ret>' -docstring 'comment block'
map global user 'C' '_: comment-block<ret>' -docstring 'comment block'
map global user 'p' '! wl-paste -n<ret>' -docstring 'clipboard paste'
map global user 'P' '<a-o>j! wl-paste -n<ret>' -docstring 'clipboard paste on next line'