Skip to content

Commit c2ff332

Browse files
author
Lifepillar
committed
Add themes under packpath to Edit > Color Scheme.
Currently, in order to populate the Edit > Color Scheme menu, MacVim searches for color schemes only in the paths defined in `runtimepath`. Since MacVim is compiled with `+packages`, it makes sense to also look for color schemes under `packpath`. This commit addresses this deficiency. Note that color schemes may be found below `pack/*/opt` or `pack/*/start` (see `:h pack-add`): `:colorscheme` searches both locations.
1 parent 8f76c00 commit c2ff332

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

runtime/menu.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ endfun
389389

390390
" get NL separated string with file names
391391
let s:n = globpath(&runtimepath, "colors/*.vim")
392+
let s:n .= globpath(&packpath, "pack/*/{opt,start}/*/colors/*.vim")
392393

393394
" split at NL, Ignore case for VMS and windows, sort on name
394395
let s:names = sort(map(split(s:n, "\n"), 'substitute(v:val, "\\c.*[/\\\\:\\]]\\([^/\\\\:]*\\)\\.vim", "\\1", "")'), 1)

0 commit comments

Comments
 (0)