minor fixes

This commit is contained in:
2025-10-03 12:04:57 +01:00
parent 577f26bfdd
commit 5114853ed8
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
p.vim

View File

@@ -101,4 +101,4 @@ To view this help file inside Neovim, use:
:h picvim :h picvim
< <
============================================================================== ==============================================================================
vim:tw=78:ts=4:ft=help:norl:ft=help vim:tw=78:ts=4:ft=help:norl

View File

@@ -157,9 +157,9 @@ end
function M.setup(config) function M.setup(config)
local opts = config or {} local opts = config or {}
local allowed_types = { png = true, jpg = true, jpeg = true, gif = true, bmp = true } local allowed_types = { png = true, jpg = true, jpeg = true, gif = true, bmp = true, ico = true }
local filetypes = {} local filetypes = {}
for _, ft in ipairs(opts.filetypes or { "png", "jpg", "jpeg", "gif", "bmp" }) do for _, ft in ipairs(opts.filetypes or { "png", "jpg", "jpeg", "gif", "bmp", "ico" }) do
if allowed_types[ft] then if allowed_types[ft] then
table.insert(filetypes, ft) table.insert(filetypes, ft)
end end