Show lua colorschemes in :Colors command (#1619)

This commit is contained in:
sachit
2026-06-01 22:09:22 -04:00
committed by GitHub
parent 7fd26e3609
commit 356608e2ae
+1 -5
View File
@@ -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')