From 1db0f75674824caa9d4c73e48d1dc8128150c78d Mon Sep 17 00:00:00 2001 From: Nulo Date: Thu, 16 Dec 2021 16:12:30 -0300 Subject: [PATCH] kak: FZF --- .config/kak/kakrc | 10 ++++++++++ .config/kak/plugins/fzf.kak | 1 + .gitmodules | 3 +++ 3 files changed, 14 insertions(+) create mode 160000 .config/kak/plugins/fzf.kak diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 1a2e3f9..ccfb622 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -85,3 +85,13 @@ define-command sleuth -docstring 'Heuristically set buffer options' %{ hook -group sleuth global BufOpenFile .* %{ sleuth } hook -group sleuth global BufWritePost .* %{ sleuth } + +# ------------ +# FZF +# ------------ +source "%val{config}/plugins/fzf.kak/rc/fzf.kak" +evaluate-commands %sh{ + env>/dev/stderr + find -L "$kak_config/plugins/fzf.kak/rc/modules/" -type f -name '*.kak' -exec printf 'source "%s"\n' {} \; +} +map global normal ': fzf-modef' diff --git a/.config/kak/plugins/fzf.kak b/.config/kak/plugins/fzf.kak new file mode 160000 index 0000000..68f21eb --- /dev/null +++ b/.config/kak/plugins/fzf.kak @@ -0,0 +1 @@ +Subproject commit 68f21eb78638e5a55027f11aa6cbbaebef90c6fb diff --git a/.gitmodules b/.gitmodules index 25e8a99..d89e8c0 100644 --- a/.gitmodules +++ b/.gitmodules @@ -40,3 +40,6 @@ [submodule ".config/kak/plugins/zig.kak"] path = .config/kak/plugins/zig.kak url = https://gitea.nulo.in/Nulo/zig.kak +[submodule ".config/kak/plugins/fzf.kak"] + path = .config/kak/plugins/fzf.kak + url = https://github.com/andreyorst/fzf.kak