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:
parent
322923829c
commit
2a76dc2039
5 changed files with 123 additions and 34 deletions
|
@ -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>"
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
programs.fish.shellAliases = {
|
||||
brew64 = "arch -x86_64 /usr/local/bin/brew";
|
||||
};
|
||||
nki.programs.kitty.package = pkgs.hello; # We install kitty for ourselves
|
||||
nki.programs.kitty.background = ./images/chise-bg.png;
|
||||
|
||||
home.sessionPath = [
|
||||
|
|
|
@ -11,6 +11,11 @@ with lib;
|
|||
options.nki.programs.kitty = {
|
||||
enable = mkEnableOption "Enable kitty";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.kitty;
|
||||
};
|
||||
|
||||
# font
|
||||
fontSize = mkOption {
|
||||
type = types.int;
|
||||
|
@ -29,6 +34,8 @@ with lib;
|
|||
config.programs.kitty = mkIf cfg.enable {
|
||||
enable = true;
|
||||
|
||||
package = cfg.package;
|
||||
|
||||
font.package = pkgs.fantasque-sans-mono;
|
||||
font.name = "Fantasque Sans Mono";
|
||||
font.size = cfg.fontSize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue