45 lines
1.3 KiB
Text
45 lines
1.3 KiB
Text
colorscheme desertex
|
|
set-option global scrolloff 5,5
|
|
set-option global incsearch true
|
|
set-option global aligntab true
|
|
set-option global ui_options ncurses_assistant=dilbert
|
|
set-option -add global ui_options ncurses_change_colors=true
|
|
set-option global grepcmd 'rg --column'
|
|
|
|
wiki_setup "/home/nk/Wiki"
|
|
|
|
# with inspiration from
|
|
# https://github.com/Delapouite/dotfiles/blob/master/link/kak/kakrc
|
|
set global modelinefmt %{
|
|
%val{bufname} [%opt{filetype}]
|
|
· %val{cursor_line}:%val{cursor_char_column}
|
|
· {{context_info}} {{mode_info}}
|
|
}
|
|
|
|
hook global InsertBegin .* %{
|
|
echo '— INSERT —'
|
|
}
|
|
|
|
hook global InsertEnd .* %{
|
|
lint
|
|
}
|
|
|
|
# spaces instead tabs
|
|
map global insert <tab> ' '
|
|
|
|
# ← system clipboard
|
|
map global user y '<a-|>xsel --input --clipboard<ret>; :echo -color Information "copied selection to X11 clipboard"<ret>' -docstring 'yank from clipboard'
|
|
map global user p '<a-!>xsel --output --clipboard<ret>' -docstring 'replace from clipboard'
|
|
map global user P '!xsel --output --clipboard<ret>' -docstring 'print from clipboard'
|
|
|
|
# → system clipboard
|
|
hook global NormalKey y|d|c %{ nop %sh{
|
|
printf %s "$kak_reg_dquote" | xsel --input --clipboard
|
|
}}
|
|
|
|
def -docstring 'ripgrep in current dir' \
|
|
find -params 1 -shell-candidates %{ rg --files } %{ edit %arg{1} }
|
|
|
|
# editorconfig support
|
|
hook global BufCreate .* %{editorconfig-load}
|
|
|