rm telescope-media-files.nvim!

it heavily relies on xorg so doesnt fully work on linux!, forget about macos,windows. Added a basic config doc for it here : https://nvchad.github.io/Extras#telescope-media-filesnvim
This commit is contained in:
siduck 2022-01-01 17:30:42 +05:30
parent abe720b881
commit 9551ce7031
5 changed files with 0 additions and 31 deletions

1
.github/README.md vendored
View File

@ -72,7 +72,6 @@ Fast file tree:
A fuzzy file finder, picker, sorter, previewer and much more: A fuzzy file finder, picker, sorter, previewer and much more:
<kbd><img src="https://raw.githubusercontent.com/siduck/dotfiles/all/rice%20flex/tel.png"></kbd> <kbd><img src="https://raw.githubusercontent.com/siduck/dotfiles/all/rice%20flex/tel.png"></kbd>
<kbd><img src="https://raw.githubusercontent.com/siduck/dotfiles/all/rice%20flex/telmedia.png"></kbd><hr>
<h3> Indent-blankline.nvim </h3> <h3> Indent-blankline.nvim </h3>

View File

@ -66,7 +66,6 @@ M.plugins = {
feline = true, -- statusline feline = true, -- statusline
gitsigns = true, gitsigns = true,
lspsignature = true, -- lsp enhancements lspsignature = true, -- lsp enhancements
telescope_media = false,
vim_matchup = true, -- improved matchit vim_matchup = true, -- improved matchit
cmp = true, cmp = true,
nvimtree = true, nvimtree = true,
@ -227,10 +226,6 @@ M.mappings.plugins = {
live_grep = "<leader>fw", live_grep = "<leader>fw",
oldfiles = "<leader>fo", oldfiles = "<leader>fo",
themes = "<leader>th", -- NvChad theme picker themes = "<leader>th", -- NvChad theme picker
telescope_media = {
media_files = "<leader>fp",
},
}, },
} }

View File

@ -180,10 +180,4 @@ M.telescope = function()
map("n", m.themes, ":Telescope themes <CR>") map("n", m.themes, ":Telescope themes <CR>")
end end
M.telescope_media = function()
local m = plugin_maps.telescope.telescope_media
map("n", m.media_files, ":Telescope media_files <CR>")
end
return M return M

View File

@ -51,21 +51,9 @@ telescope.setup {
-- Developer configurations: Not meant for general override -- Developer configurations: Not meant for general override
buffer_previewer_maker = require("telescope.previewers").buffer_previewer_maker, buffer_previewer_maker = require("telescope.previewers").buffer_previewer_maker,
}, },
extensions = {
media_files = {
filetypes = { "png", "webp", "jpg", "jpeg" },
find_cmd = "rg", -- find command (defaults to `fd`)
},
},
} }
local extensions = { "themes", "terms" } local extensions = { "themes", "terms" }
local packer_repos = [["extensions"]]
if vim.fn.executable "ueberzug" == 1 then
table.insert(extensions, "media_files")
packer_repos = packer_repos .. ', "telescope-media-files.nvim"'
end
pcall(function() pcall(function()
for _, ext in ipairs(extensions) do for _, ext in ipairs(extensions) do

View File

@ -217,13 +217,6 @@ return packer.startup(function()
use { use {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
cmd = "Telescope", cmd = "Telescope",
requires = {
"nvim-telescope/telescope-media-files.nvim",
disable = not plugin_settings.status.telescope_media,
setup = function()
require("core.mappings").telescope_media()
end,
},
config = override_req("telescope", "plugins.configs.telescope"), config = override_req("telescope", "plugins.configs.telescope"),
setup = function() setup = function()
require("core.mappings").telescope() require("core.mappings").telescope()