The Meowgorithm Dotfiles, Collectors’ Edition
source "%val{config}/plugins/plug.kak/rc/plug.kak"
plug "andreyorst/plug.kak" noload
# Highlight current line
plug "insipx/kak-crosshairs" config %{ cursorline }
# Fuzzy find with find
def find -params 1 -shell-script-candidates %{ find . -type f -not -path '*/\.git/*' } %{ edit %arg{1} }
# Fuzzy find with fzf
plug "andreyorst/fzf.kak" config %{
map global user p ': fzf-mode<ret>f' -docstring 'fzf find file'
} defer "fzf-file" %{
set-option global fzf_file_command 'rg --hidden --files --glob !*.git'
evaluate-commands %sh{
[ -n "$(command -v bat)" ] && echo "set-option global fzf_highlight_command bat"
}
}
# Fuzzy find with Lua
plug "gustavo-hms/luar" %{
plug "gustavo-hms/peneira" %{
require-module peneira
set-option global peneira_files_command "rg --files"
define-command peneira-buffers %{
peneira 'buffers: ' %{ printf '%s\n' $kak_quoted_buflist } %{
buffer %arg{1}
}
}
map global normal <c-p> ':peneira-files<ret>' -docstring 'fuzzy find files'
map global user b ':peneira-buffers<ret>' -docstring 'fuzzy find buffers'
}
}
# Tree
plug "andreyorst/kaktree" config %{
hook global WinSetOption filetype=kaktree %{