[nvim+zsh] use a better FZF theme

This commit is contained in:
Dmytro Meleshko 2021-05-22 17:10:37 +03:00
parent f06382d651
commit 76eacb2ac2
3 changed files with 8 additions and 2 deletions

View file

@ -5,7 +5,8 @@
execute 'source' fnameescape(g:dotfiles_dir.'/colorschemes/out/vim.vim') execute 'source' fnameescape(g:dotfiles_dir.'/colorschemes/out/vim.vim')
if !&termguicolors && exists('$_COLORSCHEME_TERMINAL') let s:is_gui_color = !has('win32') && !has('win64') && !has('win32unix') && has('termguicolors') && &termguicolors
if s:is_gui_color && exists('$_COLORSCHEME_TERMINAL')
set notermguicolors set notermguicolors
endif endif
@ -153,7 +154,7 @@
call s:hi('SpellLocal', s:spell_fg, s:is_kitty ? '' : 0xC, s:spell_attr, 0xC) call s:hi('SpellLocal', s:spell_fg, s:is_kitty ? '' : 0xC, s:spell_attr, 0xC)
call s:hi('SpellCap', s:spell_fg, s:is_kitty ? '' : 0xD, s:spell_attr, 0xD) call s:hi('SpellCap', s:spell_fg, s:is_kitty ? '' : 0xD, s:spell_attr, 0xD)
call s:hi('SpellRare', s:spell_fg, s:is_kitty ? '' : 0xE, s:spell_attr, 0xE) call s:hi('SpellRare', s:spell_fg, s:is_kitty ? '' : 0xE, s:spell_attr, 0xE)
unlet s:is_kitty s:spell_fg s:spell_attr unlet s:spell_fg s:spell_attr
call s:hi('Sneak', 'bg', 0xB, 'bold', '') call s:hi('Sneak', 'bg', 0xB, 'bold', '')
hi! link SneakScope Visual hi! link SneakScope Visual

View file

@ -123,6 +123,8 @@ endif
nnoremap <silent> <F1> <Cmd>Helptags<CR> nnoremap <silent> <F1> <Cmd>Helptags<CR>
nnoremap <silent> <leader>f <Cmd>Files<CR> nnoremap <silent> <leader>f <Cmd>Files<CR>
nnoremap <silent> <leader>b <Cmd>Buffers<CR> nnoremap <silent> <leader>b <Cmd>Buffers<CR>
" <https://github.com/junegunn/fzf/blob/764316a53d0eb60b315f0bbcd513de58ed57a876/src/tui/tui.go#L496-L515>
let $FZF_DEFAULT_OPTS = '--color=16'
let g:fzf_layout = { 'down': '~40%' } let g:fzf_layout = { 'down': '~40%' }
let g:fzf_preview_window = ['right:noborder', 'ctrl-/'] let g:fzf_preview_window = ['right:noborder', 'ctrl-/']
" }}} " }}}

View file

@ -31,3 +31,6 @@ export JQ_COLORS="${(j.:.)jq_colors}"
unset jq_colors unset jq_colors
export HOMEBREW_NO_AUTO_UPDATE=1 export HOMEBREW_NO_AUTO_UPDATE=1
# https://github.com/junegunn/fzf/blob/764316a53d0eb60b315f0bbcd513de58ed57a876/src/tui/tui.go#L496-L515
export FZF_DEFAULT_OPTS="--color=16"