mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
feat: add custom media_extensions support (#306)
* Add custom media_extensions support Customize insert image and preview image files list. This is useful to add optional filetypes into filtered list (for example telescope-media-files optionally supporting svg preview) * Make media_extension option matching to default one
This commit is contained in:
@@ -136,6 +136,20 @@ telekasten.setup({opts})
|
||||
-- "viu-previewer" if you have viu installed
|
||||
media_previewer = "telescope-media-files",
|
||||
|
||||
-- Customize insert image and preview image files list. This is useful
|
||||
-- to add optional filetypes into filtered list (for example
|
||||
-- telescope-media-files optionally supporting svg preview)
|
||||
media_extensions = {
|
||||
".png",
|
||||
".jpg",
|
||||
".bmp",
|
||||
".gif",
|
||||
".pdf",
|
||||
".mp4",
|
||||
".webm",
|
||||
".webp",
|
||||
},
|
||||
|
||||
-- Calendar integration
|
||||
plug_into_calendar = true, -- use calendar integration
|
||||
calendar_opts = {
|
||||
|
||||
Reference in New Issue
Block a user