mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim+zsh] use a better FZF theme
This commit is contained in:
parent
f06382d651
commit
76eacb2ac2
3 changed files with 8 additions and 2 deletions
|
@ -5,7 +5,8 @@
|
|||
|
||||
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
|
||||
endif
|
||||
|
||||
|
@ -153,7 +154,7 @@
|
|||
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('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', '')
|
||||
hi! link SneakScope Visual
|
||||
|
|
|
@ -123,6 +123,8 @@ endif
|
|||
nnoremap <silent> <F1> <Cmd>Helptags<CR>
|
||||
nnoremap <silent> <leader>f <Cmd>Files<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_preview_window = ['right:noborder', 'ctrl-/']
|
||||
" }}}
|
||||
|
|
|
@ -31,3 +31,6 @@ export JQ_COLORS="${(j.:.)jq_colors}"
|
|||
unset jq_colors
|
||||
|
||||
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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue