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