mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-06-16 04:26:28 +08:00
Show lua colorschemes in :Colors command (#1619)
This commit is contained in:
@@ -688,11 +688,7 @@ function! s:colors_exit(code)
|
||||
endfunction
|
||||
|
||||
function! fzf#vim#colors(...)
|
||||
let colors = split(globpath(&rtp, "colors/*.vim"), "\n")
|
||||
if has('packages')
|
||||
let colors += split(globpath(&packpath, "pack/*/opt/*/colors/*.vim"), "\n")
|
||||
endif
|
||||
let colors = fzf#vim#_uniq(map(colors, "fnamemodify(v:val, ':t')[:-5]"))
|
||||
let colors = getcompletion('', 'color')
|
||||
|
||||
" Put the current colorscheme at the top
|
||||
if exists('g:colors_name')
|
||||
|
||||
Reference in New Issue
Block a user