blob: 5e0f64dd91c76caa962ff8e09b2a1e1eb66eb157 (
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
29
30
31
32
33
34
|
# xsel support
hook global RegisterModified '"' %{ nop %sh{
printf %s "$kak_main_reg_dquote" | xsel --input --clipboard
}}
# kak-lsp
eval %sh{kak-lsp --kakoune -s $kak_session}
hook global WinSetOption filetype=(c|python|haskell|latex) %{
lsp-enable-window
lsp-auto-hover-buffer-enable
}
# colors
hook global ModeChange insert:.* %{
set-face global PrimaryCursor rgb:ffffff,rgb:000000+F
}
hook global ModeChange .*:insert %{
set-face global PrimaryCursor rgb:ffffff,rgb:008800+F
}
add-highlighter global/ number-lines -hlcursor -relative
colorscheme pastel
hook global WinSetOption filetype=(c|haskell|latex|kak) %{
rainbow-enable-window
}
# tabs
set global tabstop 8
set global indentwidth 8
# auto pair (automaticaly introducde a closing bracket)
set-option global auto_pairs ( ) { } [ ] '"' '"' "'" "'" ` ` “ ” ‘ ’ « » ‹ ›
enable-auto-pairs
|