From 5114853ed8f24661e48b726135bf78860d9339d5 Mon Sep 17 00:00:00 2001 From: Syed Daanish Date: Fri, 3 Oct 2025 12:04:57 +0100 Subject: [PATCH] minor fixes --- .gitignore | 1 + doc/picvim.txt | 2 +- lua/picvim.lua | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 .gitignore 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