home-environments: radio: Minor tweaks over fish-fzf configuration

main
Luis Guilherme Coelho 2024-11-26 14:57:24 -03:00
parent c5db909acc
commit b350f60a20
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
2 changed files with 20 additions and 16 deletions

View File

@ -243,28 +243,21 @@
(plugins
(list fish-fzf))
(config
(list (plain-file "fish-fzf.fish"
(string-join
`("fzf_configure_bindings"
"--directory=@@"
"--git_log=@l"
"--git_status=@s"
"--history=@h"
"--processes="
"--variables=")))))
(list fish-config:fzf))
(environment-variables
`(("LS_COLORS" . "'di=01;34:ln=01;36:or=01;31'")
("fzf_preview_dir_cmd" . "''")
("FZF_DEFAULT_OPTS"
. ("--filepath-word"
"--height=~40%"
. ("--color=fg:blue:bold,hl:#cccccc"
"--color=fg+:blue:bold,hl+:#cccccc"
"--color=prompt:blue,pointer:blue"
"--color=info:#ffffff,border:#000000"
"--filepath-word"
"--height=~60%"
"--layout=reverse"
"--preview=''"
"--scheme=path"
"--scroll-off=2"
"--color=fg:blue:bold,hl:#cccccc"
"--color=fg+:blue:bold,hl+:#cccccc"
"--color=prompt:blue,pointer:blue"
"--color=info:#ffffff,border:#000000"))
"--scroll-off=2"))
("fzf_base_fd_opts" . ("--exclude='\\..*'"
"--follow"
"--type directory"))

View File

@ -0,0 +1,11 @@
(define-module (home-environments radio fish-configs)
#:use-module (guix gexp)
#:export (fzf))
(define fzf
(plain-file "fish-fzf.fish"
(string-join
`("fzf_configure_bindings --directory=@@ --history= --processes= "
"bind -M default / _fzf_search_history")
"\n")))