mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-06 11:48:23 +00:00
fix(picker.colorscheme): use wildignore. Closes #969
This commit is contained in:
parent
4bae6231ca
commit
ba8badfe74
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ function M.colorschemes()
|
||||||
if package.loaded.lazy then
|
if package.loaded.lazy then
|
||||||
rtp = rtp .. "," .. table.concat(require("lazy.core.util").get_unloaded_rtp(""), ",")
|
rtp = rtp .. "," .. table.concat(require("lazy.core.util").get_unloaded_rtp(""), ",")
|
||||||
end
|
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
|
for _, file in ipairs(files) do
|
||||||
local name = vim.fn.fnamemodify(file, ":t:r")
|
local name = vim.fn.fnamemodify(file, ":t:r")
|
||||||
local ext = vim.fn.fnamemodify(file, ":e")
|
local ext = vim.fn.fnamemodify(file, ":e")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue