diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7e4b295 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +p.vim diff --git a/doc/picvim.txt b/doc/picvim.txt index 44a0fab..53d4d18 100644 --- a/doc/picvim.txt +++ b/doc/picvim.txt @@ -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 diff --git a/lua/picvim.lua b/lua/picvim.lua index 372fca2..2b4f267 100644 --- a/lua/picvim.lua +++ b/lua/picvim.lua @@ -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