minor fixes
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
p.vim
|
||||
@@ -101,4 +101,4 @@ To view this help file inside Neovim, use:
|
||||
:h picvim
|
||||
<
|
||||
==============================================================================
|
||||
vim:tw=78:ts=4:ft=help:norl:ft=help
|
||||
vim:tw=78:ts=4:ft=help:norl
|
||||
|
||||
@@ -157,9 +157,9 @@ end
|
||||
|
||||
function M.setup(config)
|
||||
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 = {}
|
||||
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
|
||||
table.insert(filetypes, ft)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user