set global fzf config

This commit is contained in:
lelgenio 2020-10-20 14:57:55 -03:00
parent 2c91ad91c9
commit e8bf24a68f
3 changed files with 14 additions and 22 deletions

View File

@ -37,13 +37,9 @@ command -qs trash &&
command -qs exa &&
alias ls 'exa --git'
{%@@ set bat_command = "bat " + ("--theme GitHub" * (color.type == "light")) @@%}
command -qs bat &&
# {%@@ if color.type == "light" @@%} #
alias cat 'bat --theme GitHub'
# {%@@ else @@%} #
alias cat 'bat'
# {%@@ endif @@%} #
alias cat "{{@@ bat_command @@}}"
command -qs zoxide &&
zoxide init fish | source
@ -294,5 +290,16 @@ set -xU LESS_TERMCAP_so (printf "\e[01;44;33m")
set -xU LESS_TERMCAP_ue (printf "\e[0m")
set -xU LESS_TERMCAP_us (printf "\e[01;32m")
#}}}
# Fzf settings{{{
export FZF_DEFAULT_OPTS="\
--preview '{{@@ bat_command @@}} --style=numbers --color=always {}' \
--color='\
bg+:{{@@ color.bg_light @@}},\
gutter:{{@@ color.bg @@}},\
prompt:{{@@ color.accent @@}},\
pointer:{{@@ color.accent @@}},\
spinner:{{@@ color.accent @@}}\
'"
#}}}
# vim:foldmethod=marker

View File

@ -221,21 +221,6 @@ call plug#end()
highlight SpellCap guisp={{@@ color.normal.cyan @@}} guibg=none
highlight SpellLocal guisp={{@@ color.normal.yellow @@}} guibg=none
let g:fzf_colors =
\ { 'fg': ['fg', 'Normal'],
\ 'bg': ['bg', 'Normal'],
\ 'hl': ['fg', 'Comment'],
\ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
\ 'bg+': ['bg', 'CursorLine', 'CursorColumn'],
\ 'hl+': ['fg', 'Statement'],
\ 'info': ['fg', 'PreProc'],
\ 'border': ['fg', 'Ignore'],
\ 'prompt': ['fg', 'Conditional'],
\ 'pointer': ['fg', 'Exception'],
\ 'marker': ['fg', 'Keyword'],
\ 'spinner': ['fg', 'Label'],
\ 'header': ['fg', 'Comment'] }
"}}}
" Keys{{{
"

View File

@ -46,7 +46,7 @@ depends=(
papirus-folders capitaine-cursors
# Terminal
ranger atool p7zip tree jq
ranger atool p7zip tree jq fzf
neofetch htop
# Replacements
#ls cat rm -rf grep find sed cd