Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/snacks/image/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ local defaults = {
spell = false,
statuscolumn = "",
},
cache = vim.fn.stdpath("cache") .. "/snacks/image",
cache = vim.fn.stdpath("cache") .. vim.fs.normalize("/snacks/image"),
debug = {
request = false,
convert = false,
Expand Down Expand Up @@ -228,7 +228,7 @@ end
function M.langs()
local queries = vim.api.nvim_get_runtime_file("queries/*/images.scm", true)
return vim.tbl_map(function(q)
return q:match("queries/(.-)/images%.scm")
return vim.fs.normalize(q):match("queries/(.-)/images%.scm")
end, queries)
end

Expand Down