set global fzf config
This commit is contained in:
parent
2c91ad91c9
commit
e8bf24a68f
|
@ -37,13 +37,9 @@ command -qs trash &&
|
||||||
|
|
||||||
command -qs exa &&
|
command -qs exa &&
|
||||||
alias ls 'exa --git'
|
alias ls 'exa --git'
|
||||||
|
{%@@ set bat_command = "bat " + ("--theme GitHub" * (color.type == "light")) @@%}
|
||||||
command -qs bat &&
|
command -qs bat &&
|
||||||
# {%@@ if color.type == "light" @@%} #
|
alias cat "{{@@ bat_command @@}}"
|
||||||
alias cat 'bat --theme GitHub'
|
|
||||||
# {%@@ else @@%} #
|
|
||||||
alias cat 'bat'
|
|
||||||
# {%@@ endif @@%} #
|
|
||||||
|
|
||||||
command -qs zoxide &&
|
command -qs zoxide &&
|
||||||
zoxide init fish | source
|
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_ue (printf "\e[0m")
|
||||||
set -xU LESS_TERMCAP_us (printf "\e[01;32m")
|
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
|
# vim:foldmethod=marker
|
||||||
|
|
|
@ -221,21 +221,6 @@ call plug#end()
|
||||||
highlight SpellCap guisp={{@@ color.normal.cyan @@}} guibg=none
|
highlight SpellCap guisp={{@@ color.normal.cyan @@}} guibg=none
|
||||||
highlight SpellLocal guisp={{@@ color.normal.yellow @@}} 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{{{
|
" Keys{{{
|
||||||
"
|
"
|
||||||
|
|
|
@ -46,7 +46,7 @@ depends=(
|
||||||
papirus-folders capitaine-cursors
|
papirus-folders capitaine-cursors
|
||||||
|
|
||||||
# Terminal
|
# Terminal
|
||||||
ranger atool p7zip tree jq
|
ranger atool p7zip tree jq fzf
|
||||||
neofetch htop
|
neofetch htop
|
||||||
# Replacements
|
# Replacements
|
||||||
#ls cat rm -rf grep find sed cd
|
#ls cat rm -rf grep find sed cd
|
||||||
|
|
Reference in New Issue