Commit 0d1d8f7d authored by Ahmed El Gabri's avatar Ahmed El Gabri

vim: Tweak Pmenu color & fzf floating window UI

parent 1a85f056
......@@ -275,13 +275,11 @@ endfunction
function! utils#floating_fzf() abort
let l:buf = nvim_create_buf(v:false, v:true)
call setbufvar(buf, '&signcolumn', 'no')
call setbufvar(l:buf, '&filetype', 'fzf')
let l:height = float2nr(&lines * 0.9)
let l:width = float2nr(&columns - (&columns / 10))
let l:col = float2nr((&columns - width) / 2)
let l:row = 0
let l:height = float2nr(&lines * 0.6)
let l:width = float2nr(&columns * 0.9)
let l:col = (&columns - width) / 2
let l:row = (&lines - height) / 2
let l:opts = {
\ 'relative': 'editor',
......@@ -292,7 +290,10 @@ function! utils#floating_fzf() abort
\ 'style': 'minimal'
\ }
call nvim_open_win(l:buf, v:true, l:opts)
let l:win = nvim_open_win(l:buf, v:true, l:opts)
if exists('&winblend')
call setwinvar(win, '&winblend', 5)
endif
endfunction
function! utils#fzf_window() abort
......
......@@ -36,5 +36,6 @@ augroup MyCustomColors
autocmd ColorScheme plain execute printf('hi! LineNr gui=NONE cterm=NONE guibg=NONE ctermbg=NONE guifg=%s ctermfg=%s', utils#get_color('VisualNOS', 'bg', 'gui'), utils#get_color('VisualNOS', 'bg', 'cterm'))
\| hi! Comment cterm=NONE gui=NONE ctermfg=236 guifg=#555555
\| execute printf('hi! Pmenu gui=NONE cterm=NONE guibg=#222222 ctermbg=234 guifg=%s ctermfg=%s', utils#get_color('Pmenu', 'fg', 'gui'), utils#get_color('Pmenu', 'fg', 'cterm'))
\| hi! link PmenuSel TermCursor
augroup END
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment