From e84febc1e5313dbb9747f2675c05b3fadc5e9ac2 Mon Sep 17 00:00:00 2001 From: nojhan Date: Sat, 3 Feb 2024 08:42:26 +0100 Subject: [PATCH] up --- kak/kakrc | 39 ++++++++++++++++++++++++++++++++------- 1 file changed, 32 insertions(+), 7 deletions(-) diff --git a/kak/kakrc b/kak/kakrc index 8635b4e..b0230cc 100644 --- a/kak/kakrc +++ b/kak/kakrc @@ -15,7 +15,7 @@ map global normal '$' -docstring 'Comment the selected lines' ': comment-lin map global normal '' -docstring 'Comment the selected block with begin/end characters' ': comment-block' map global normal '#' -docstring 'duplicate and comment line' 'xyp: comment-linej' -map global normal '*' -docstring 'select all occurrences of the word under cursor' 'be*n' +map global normal '*' -docstring 'select all occurrences of the word under cursor' 'be*nvv' map global normal '=' -docstring 'indent like the line above' 'gijgi' @@ -147,11 +147,19 @@ filetype-hook makefile %{ filetype-hook latex %{ set-option buffer autowrap_column 160 autowrap-enable + addhl buffer/ column 160 white,black } filetype-hook markdown %{ # set-option buffer autowrap_column 80 # autowrap-enable + addhl buffer/ column 80 white,black +} + +filetype-hook restructuredtext %{ + # set-option buffer autowrap_column 80 + # autowrap-enable + addhl buffer/ column 80 white,black } filetype-hook c|cpp %{ @@ -218,7 +226,7 @@ plug "andreyorst/tagbar.kak" defer "tagbar" %{ set-option global tagbar_sort false set-option global tagbar_size 40 set-option global tagbar_display_anon false - set-option global tagbar_show_details true + set-option global tagbar_show_details false } config %{ # if you have wrap highlighter enamled in you configuration # files it's better to turn it off for tagbar, using this hook: @@ -317,10 +325,27 @@ plug "dmerejkowsky/kak-spell" config %{ map global kak-spell x ': kak-spell-remove' -docstring 'remove the selection from the user dict' } +map global user g '/[=]{7}vv' -docstring 'Search for Git conflict markers' + set-option -add global ui_options ncurses_padding_char=╱ # Examples: ▚ ╳ ╱ ┼ ╲ -add-highlighter global/ scrollbar -add-highlighter global/scrollbar/ scrollbar-indicator red,default lsp_error_lines -add-highlighter global/scrollbar/ scrollbar-indicator yellow,default lint_flags -# add-highlighter global/scrollbar/ scrollbar-indicator red,default git_diff_flags -# git show-diff +# add-highlighter global/ scrollbar +# add-highlighter global/scrollbar/ scrollbar-indicator red,default lsp_error_lines +# add-highlighter global/scrollbar/ scrollbar-indicator yellow,default lint_flags +# # add-highlighter global/scrollbar/ scrollbar-indicator red,default git_diff_flags +# # git show-diff + + +# Force `liquidprompt` to be a shell filetype. +hook global BufCreate (.*/)?liquidprompt %{ + set buffer filetype sh +} + +# Force liquidprompt's *.theme files to be a shell filetype. +hook global BufCreate .*\.theme %{ + set buffer filetype sh +} +hook global BufCreate .*\.conf %{ + set buffer filetype sh +} +