fix(picker.colorscheme): use wildignore. Closes #969

This commit is contained in:
Folke Lemaitre 2025-02-06 21:38:40 +01:00
parent 4bae6231ca
commit ba8badfe74
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -196,7 +196,7 @@ function M.colorschemes()
if package.loaded.lazy then
rtp = rtp .. "," .. table.concat(require("lazy.core.util").get_unloaded_rtp(""), ",")
end
local files = vim.fn.globpath(rtp, "colors/*", true, true) ---@type string[]
local files = vim.fn.globpath(rtp, "colors/*", false, true) ---@type string[]
for _, file in ipairs(files) do
local name = vim.fn.fnamemodify(file, ":t:r")
local ext = vim.fn.fnamemodify(file, ":e")