From 356608e2ae5d9127e2c964885ea2b21ea7aea9ab Mon Sep 17 00:00:00 2001 From: sachit Date: Mon, 1 Jun 2026 22:09:22 -0400 Subject: [PATCH] Show lua colorschemes in :Colors command (#1619) --- autoload/fzf/vim.vim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 4ddec66..26a0241 100755 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -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')