64 lines
1.9 KiB
Text
64 lines
1.9 KiB
Text
colorscheme gruvbox-dark
|
|
|
|
# init bundle
|
|
source "%val{config}/bundle/kak-bundle/rc/kak-bundle.kak"
|
|
bundle-noload kak-bundle https://codeberg.org/jdugan6240/kak-bundle
|
|
|
|
bundle auto-pairs.kak https://github.com/alexherbo2/auto-pairs.kak %{
|
|
enable-auto-pairs
|
|
}
|
|
|
|
bundle fzf.kak https://github.com/andreyorst/fzf.kak %{
|
|
require-module fzf
|
|
set-option global fzf_highlight_command "bat"
|
|
require-module fzf-grep
|
|
set-option global fzf_grep_command "rg"
|
|
require-module fzf-file
|
|
set-option global fzf_file_command "fd . --no-ignore-vcs"
|
|
map -docstring "fzf mode" global user f ": fzf-mode<ret>"
|
|
}
|
|
|
|
# disable clippy
|
|
set-option global ui_options terminal_assistant=none
|
|
|
|
hook global ModuleLoaded wayland %{
|
|
set-option global termcmd 'footclient sh -c'
|
|
}
|
|
|
|
# open tutor (needs curl)
|
|
define-command trampoline -docstring "open a tutorial" %{
|
|
evaluate-commands %sh{
|
|
tramp_file=$(mktemp -t "kakoune-trampoline.XXXXXXXX")
|
|
echo "edit -fifo $tramp_file *TRAMPOLINE*"
|
|
curl -s https://raw.githubusercontent.com/mawww/kakoune/master/contrib/TRAMPOLINE -o "$tramp_file"
|
|
}
|
|
}
|
|
|
|
set-option global tabstop 4
|
|
|
|
set-option global indentwidth 4
|
|
|
|
set-option global scrolloff 3,3
|
|
|
|
add-highlighter global/ number-lines -hlcursor -relative -separator " " -cursor-separator " |"
|
|
add-highlighter global/ show-matching
|
|
|
|
add-highlighter global/ wrap -word -indent
|
|
|
|
map -docstring "yank the selection into the clipboard" global user y "<a-|> wl-copy<ret>"
|
|
|
|
map -docstring "paste the clipboard" global user p "<a-!> wl-paste<ret>"
|
|
|
|
map -docstring "quit" global user q ":q<ret>"
|
|
|
|
map -docstring "close current buffer" global user x ": db<ret>"
|
|
map -docstring "goto previous buffer" global user m ": bp<ret>"
|
|
map -docstring "goto next buffer" global user i ": bn<ret>"
|
|
|
|
map global normal X "x<a-semicolon>"
|
|
|
|
# map global normal <c-u> ":exec <c-u>vv<ret>"
|
|
# map global normal <c-d> ":exec <c-d>vv<ret>"
|
|
|
|
map global normal <tab> _
|
|
map -docstring "commenct line" global normal <c-v> ":comment-line<ret>"
|