mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-08-02 22:18:30 +08:00
Show lua colorschemes in :Colors command (#1619)
This commit is contained in:
@@ -688,11 +688,7 @@ function! s:colors_exit(code)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! fzf#vim#colors(...)
|
function! fzf#vim#colors(...)
|
||||||
let colors = split(globpath(&rtp, "colors/*.vim"), "\n")
|
let colors = getcompletion('', 'color')
|
||||||
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]"))
|
|
||||||
|
|
||||||
" Put the current colorscheme at the top
|
" Put the current colorscheme at the top
|
||||||
if exists('g:colors_name')
|
if exists('g:colors_name')
|
||||||
|
|||||||
Reference in New Issue
Block a user