2024-04-08 21:17:57 -04:00
|
|
|
add-highlighter global/ number-lines -separator ' '
|
|
|
|
set-face global LineNumbers rgb:ffff54
|
|
|
|
set global ui_options terminal_assistant=none
|
|
|
|
|
2024-04-11 03:07:51 -04:00
|
|
|
map global normal P '!wl-paste -n<ret>'
|
|
|
|
map global normal p '<a-!>wl-paste -n<ret>'
|
|
|
|
map global normal R '|wl-paste -n<ret>'
|
|
|
|
|
2024-04-08 21:17:57 -04:00
|
|
|
#auto completion
|
|
|
|
hook global InsertCompletionShow .* %{
|
|
|
|
map window insert <tab> <c-n>
|
|
|
|
map window insert <s-tab> <c-p>
|
|
|
|
}
|
|
|
|
|
|
|
|
hook global InsertCompletionHide .* %{
|
|
|
|
unmap window insert <tab> <c-n>
|
|
|
|
unmap window insert <s-tab> <c-p>
|
|
|
|
}
|
|
|
|
|
|
|
|
hook global WinSetOption .* %{
|
|
|
|
expandtab # must be before softtabstop
|
|
|
|
set-option buffer indentwidth 4
|
|
|
|
set-option global softtabstop 4 # number of spaces to delete on backspace
|
|
|
|
}
|
2024-04-11 03:07:51 -04:00
|
|
|
|
|
|
|
hook global RegisterModified '"' %{ nop %sh{
|
|
|
|
printf %s "$kak_main_reg_dquote" | wl-copy > /dev/null 2>&1 &
|
|
|
|
}}
|