This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/common/kak/kakrc

50 lines
1.5 KiB
Plaintext
Raw Normal View History

2020-06-17 17:11:24 -05:00
source "%val{config}/plugins/plug.kak/rc/plug.kak"
2020-10-16 12:35:29 -05:00
plug "TeddyDD/kakoune-selenized" theme
2020-10-16 13:29:29 -05:00
plug "robertmeta/plug.kak" noload config %{
set global plug_always_ensure true
set global plug_max_active_downloads 25
2020-10-16 12:35:29 -05:00
}
plug "alexherbo2/connect.kak"
2020-10-16 13:29:29 -05:00
plug "kak-lsp/kak-lsp" do %{
cargo install --locked --force --path .
2020-10-16 12:35:29 -05:00
}
plug 'delapouite/kakoune-buffers' %{
# map global normal ^ q
# map global normal <a-^> Q
# map global normal q b
# map global normal Q B
# map global normal <a-q> <a-b>
# map global normal <a-Q> <a-B>
# map global normal b ': enter-buffers-mode<ret>' -docstring 'buffers'
# map global normal B ': enter-user-mode -lock buffers<ret>' -docstring 'buffers (lock)'
}
2020-06-17 17:11:24 -05:00
2020-10-16 13:29:29 -05:00
# eval %sh{kak-lsp --kakoune -s $kak_session}
hook global WinSetOption filetype=(rust|python|go|javascript|typescript|c|cpp|nim) %{
lsp-enable-window
}
2020-06-17 17:11:24 -05:00
map global normal D '<a-l>d' -docstring 'delete to end of line'
map global normal Y '<a-l>y' -docstring 'yank to end of line'
hook global InsertChar k %{ try %{
2020-10-16 12:35:29 -05:00
exec -draft hH <a-k>jk<ret> d
2020-06-17 17:11:24 -05:00
exec <esc>
}}
2020-10-16 12:35:29 -05:00
map global normal '^' '<a-h>' -docstring 'jump to start of line'
2020-10-16 13:29:29 -05:00
# add-highlighter global/show-trailing-whitespaces regex '\h+$' 0:Error
# add-highlighter global show-matching
2020-10-16 12:35:29 -05:00
2020-06-17 17:11:24 -05:00
set global tabstop 2
set global indentwidth 2
2020-10-16 12:35:29 -05:00
face global Information white,black
face global MenuBackground white,black
face global MenuForeground black,blue
face global PrimarySelection black,blue
face global PrimarySelection black,white
2020-10-16 13:29:29 -05:00
face global MatchingChar default,bright-black