mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-05 11:18:26 +00:00
fix(picker.icons): bump build for nerd fonts
This commit is contained in:
parent
a4b0a85e3b
commit
ba108e2aa8
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ local NERDFONTS_SETS = {
|
||||||
M.sources = {
|
M.sources = {
|
||||||
nerd_fonts = {
|
nerd_fonts = {
|
||||||
url = "https://github.com/ryanoasis/nerd-fonts/raw/refs/heads/master/glyphnames.json",
|
url = "https://github.com/ryanoasis/nerd-fonts/raw/refs/heads/master/glyphnames.json",
|
||||||
v = 3,
|
v = 4,
|
||||||
build = function(data)
|
build = function(data)
|
||||||
---@cast data table<string, {char:string, code:string}>
|
---@cast data table<string, {char:string, code:string}>
|
||||||
local ret = {} ---@type snacks.picker.Icon[]
|
local ret = {} ---@type snacks.picker.Icon[]
|
||||||
|
@ -79,7 +79,7 @@ local function load(source_name)
|
||||||
return vim.json.decode(data) ---@type snacks.picker.Icon[]
|
return vim.json.decode(data) ---@type snacks.picker.Icon[]
|
||||||
end
|
end
|
||||||
|
|
||||||
Snacks.notify("Fetching `" .. source_name .. "` icons …")
|
Snacks.notify("Fetching `" .. source_name .. "` icons")
|
||||||
if vim.fn.executable("curl") == 0 then
|
if vim.fn.executable("curl") == 0 then
|
||||||
Snacks.notify.error("`curl` is required to fetch icons")
|
Snacks.notify.error("`curl` is required to fetch icons")
|
||||||
return {}
|
return {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue