add kakoune

This commit is contained in:
yosh 2024-01-09 01:27:03 -05:00
parent d1cdea3f36
commit 18e89cd5a7
1 changed files with 27 additions and 0 deletions

27
.config/kak/kakrc Normal file
View File

@ -0,0 +1,27 @@
## keybinds
define-command -docstring "save and quit" x "write-all; quit"
## visual
# colorscheme
colorscheme palenight
# scrolling & wrapping
set-option global scrolloff 1,3
add-highlighter global/ wrap -word -indent
# tabs
set-option global tabstop 4
set-option global indentwidth 4
# statusbar
set-option global ui_options ncurses_status_on_top=true
# line numbers
add-highlighter global/ number-lines -hlcursor
# trailing whitespace
add-highlighter global/ regex \h+$ 0:Error
# clipboard shit
map -docstring "yank the selection into the clipboard" global user y "<a-|>xclip -sel clipboard<ret>"
map -docstring "paste the clipboard" global user p "<a-!>xclip -sel clipboard -o<ret>"