kak: kakoune-buffers

This commit is contained in:
Cat /dev/Nulo 2021-12-16 16:16:19 -03:00
parent 1db0f75674
commit 9efd89702f
3 changed files with 22 additions and 0 deletions

View file

@ -95,3 +95,21 @@ evaluate-commands %sh{
find -L "$kak_config/plugins/fzf.kak/rc/modules/" -type f -name '*.kak' -exec printf 'source "%s"\n' {} \;
}
map global normal <c-p> ': fzf-mode<ret>f'
# ------------
# Buffer switching
# ------------
source "%val{config}/plugins/kakoune-buffers/buffers.kak"
hook global WinDisplay .* info-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)…'

@ -0,0 +1 @@
Subproject commit 6b2081f5b7d58c72de319a5cba7bf628b6802881

3
.gitmodules vendored
View file

@ -43,3 +43,6 @@
[submodule ".config/kak/plugins/fzf.kak"]
path = .config/kak/plugins/fzf.kak
url = https://github.com/andreyorst/fzf.kak
[submodule ".config/kak/plugins/kakoune-buffers"]
path = .config/kak/plugins/kakoune-buffers
url = https://github.com/Delapouite/kakoune-buffers