From 88880cf44df28d7215783f92843fa3cf73ef19db Mon Sep 17 00:00:00 2001 From: lelgenio Date: Tue, 15 Jun 2021 02:19:05 -0300 Subject: [PATCH] kak: update filetypes --- dotfiles/kak/filetypes.kak | 4 ++-- dotfiles/kak/usermode.kak | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dotfiles/kak/filetypes.kak b/dotfiles/kak/filetypes.kak index e860e42..85a51e4 100644 --- a/dotfiles/kak/filetypes.kak +++ b/dotfiles/kak/filetypes.kak @@ -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' -docstring 'comment block' ] try %ยง diff --git a/dotfiles/kak/usermode.kak b/dotfiles/kak/usermode.kak index 946ed35..c8a7adc 100644 --- a/dotfiles/kak/usermode.kak +++ b/dotfiles/kak/usermode.kak @@ -18,7 +18,7 @@ map global user 'm' ': try format-buffer catch lsp-formatting' -docstring ' map global user 'M' ': try format-selections catch lsp-range-formatting' -docstring 'format selection' map global user 'c' ': comment-line' -docstring 'comment line' -map global user 'C' ': comment-block' -docstring 'comment block' +map global user 'C' '_: comment-block' -docstring 'comment block' map global user 'p' '! wl-paste -n' -docstring 'clipboard paste' map global user 'P' 'j! wl-paste -n' -docstring 'clipboard paste on next line'