summaryrefslogtreecommitdiff
path: root/.config/kak/kakrc
blob: fb2baec0d24f1c971ac5be4c2fec02d34553b32c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
add-highlighter global/ number-lines
addhl global/ wrap -word
set -add global ui_options terminal_assistant=none
set -add global ui_options terminal_status_on_top=true

set global indentwidth 0
set global tabstop 4

hook global WinSetOption filetype=python %{
	set window indentwidth 4
	hook -once -always window WinSetOption filetype=.* %{
		set window indentwidth 0
	}
}
	

map global user <c> ':comment-line<ret>' -docstring 'comment line'
# map global user <x> '<a-|>wl-copy<ret>' -docstring 'wl-copy'
add-highlighter global/longline column 70 ,rgb:333333


evaluate-commands %sh{
	copy='printf "\033]52;;%s\033\\" $(base64 | tr -d "\n") > $( [ -n "$kak_client_pid" ] && echo /proc/$kak_client_pid/fd/0 || echo /dev/tty )'
	backend='OSC 52'
	printf "map global user -docstring 'yank to primary' y '<a-|>%s<ret>:echo -markup %%{{Information}copied selection to %s primary}<ret>'\n" "$copy" "$backend"
}