Update nixpkgs and add broot overlay

broot 1.14.0 does not build on non-Linux, so 1.14.1 is in as a hotfix.
This commit is contained in:
Natsu Kagami 2022-07-06 15:56:28 -04:00 committed by Natsu Kagami
parent 322923829c
commit 2a76dc2039
5 changed files with 123 additions and 34 deletions

View file

@ -170,12 +170,22 @@ in
}
}
# Grep in the current location
define-command peneira-grep %{
peneira 'line: ' "rg -n ." %{
lua %arg{1} %{
local file, line = arg[1]:match("([^:]+):(%d+):")
kak.edit(file, line)
}
}
# A peneira menu
declare-user-mode fuzzy-match-menu
map -docstring "Switch to buffer" global fuzzy-match-menu b ": peneira-buffers<ret>"
map -docstring "Symbols" global fuzzy-match-menu s ": peneira-symbols<ret>"
map -docstring "Lines" global fuzzy-match-menu l ": peneira-lines<ret>"
map -docstring "Lines in the current directory" global fuzzy-match-menu g ": peneira-grep<ret>"
map -docstring "Files in project" global fuzzy-match-menu f ": peneira-files<ret>"
map -docstring "Files in currently opening file's directory" global fuzzy-match-menu F ": peneira-local-files<ret>"