Skip to content

Instantly share code, notes, and snippets.

@gboncoffee
Last active September 29, 2023 12:49
Show Gist options
  • Save gboncoffee/cf2e8c1ef10470892911dfce9393c83e to your computer and use it in GitHub Desktop.
Save gboncoffee/cf2e8c1ef10470892911dfce9393c83e to your computer and use it in GitHub Desktop.
Kakoune configuration
set-option global indentwidth 0
set-option global scrolloff 10,10
set-option -remove global autocomplete prompt|insert
set-option -add global ui_options terminal_assistant=none
set-option -add global ui_options terminal_enable_mouse=true
set-option global makecmd ''
# hooks
hook global WinCreate ^[^*]+$ %{editorconfig-load}
hook global BufCreate .+\.lua %{
set-option buffer indentwidth 4
}
# keybinds
map global user <space> -docstring 'run make' ":make <up>"
map global user y -docstring 'yank to X11 clipboard' "<a-|> xsel --input --clipboard <ret>"
map global user p -docstring 'paste from X11 clipboard' "! xsel --output --clipboard <ret>"
map global user j -docstring 'goto next grep result' ": grep-next-match<ret>"
map global user k -docstring 'goto previous grep result' ": grep-previous-match<ret>"
# appearance and highlighting
remove-hooks global '.+-highlight'
addhl global/ number-lines -relative
colorscheme cybercafe-soft
add-highlighter global/ column '%opt{autowrap_column}' default,rgb:444444
add-highlighter global/ regex \b(TODO|FIXME|XXX|NOTE)\b 0:default+rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment