From b9f962ee50092d3f6a87943073265401cfb49970 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 4 Sep 2023 21:16:43 -0500 Subject: [PATCH] refeactor(nvim): remove unused telescope extensions --- .../nvim/lua/plugins/configs/telescope.lua | 57 +++++++++---------- 1 file changed, 26 insertions(+), 31 deletions(-) diff --git a/dots/.config/nvim/lua/plugins/configs/telescope.lua b/dots/.config/nvim/lua/plugins/configs/telescope.lua index 9c9ce2a8..79155678 100644 --- a/dots/.config/nvim/lua/plugins/configs/telescope.lua +++ b/dots/.config/nvim/lua/plugins/configs/telescope.lua @@ -11,39 +11,39 @@ return { ":Telescope diagnostics bufnr=0", desc = "LSP: Telescope Diagnostics", }, - { "t", desc = "> Telescope" }, - { "tg", desc = "> Telescope: Git" }, - { "tw", ":Telescope live_grep", desc = "Telescope: Grep for Word" }, - { "tgs", ":Telescope git_status", desc = "Telescope: Git Status" }, - { "tgc", ":Telescope git_commits", desc = "Telescope: Git Commits" }, - { "tgb", ":Telescope git_branches", desc = "Telescope: Git Branches" }, - { "tf", ":Telescope find_files", desc = "Telescope: Find Files" }, - { "td", ":Telescope find_directories", desc = "Telescope: Find Directories" }, - { "tb", ":Telescope buffers", desc = "Telescope: Buffers" }, - { "th", ":Telescope help_tags", desc = "Telescope: Help Tags" }, - { "to", ":Telescope oldfiles", desc = "Telescope: Recent Files" }, - { "tn", ":Telescope neoclip default", desc = "Telescope: Neoclip Buffer" }, - { "tr", ":Telescope resume", desc = "Telescope: Resume" }, - { "tR", ":Telescope registers", desc = "Telescope: Registers" }, - { "tt", ":Telescope file_browser", desc = "Telescope: File Tree" }, - { "ts", ":Telescope spell_suggest", desc = "Telescope: Spell Suggest" }, - { "tl", ":Telescope resume", desc = "Telescope: Previous State" }, - { "tT", ":TodoTelescope", desc = "Telescope: Todo Items" }, - { "tk", ":Telescope keymaps", desc = "Telescope: Keymaps" }, - { "tc", ":Telescope commands", desc = "Telescope: Commands" }, - { "tu", ":Telescope undo", desc = "Telescope: Undo History" }, - { "lq", ":Telescope diagnostics bufnr=0", desc = "LSP: Telescope Diagnostics" }, - { "nv", ":Telescope notify", desc = "Notifications: Search" }, + { "t", desc = "> Telescope" }, + { "tg", desc = "> Telescope: Git" }, + { "tw", ":Telescope live_grep", desc = "Telescope: Grep for Word" }, + { "tgs", ":Telescope git_status", desc = "Telescope: Git Status" }, + { "tgc", ":Telescope git_commits", desc = "Telescope: Git Commits" }, + { "tgb", ":Telescope git_branches", desc = "Telescope: Git Branches" }, + { "tf", ":Telescope find_files", desc = "Telescope: Find Files" }, + { "td", ":Telescope find_directories", desc = "Telescope: Find Directories" }, + { "tb", ":Telescope buffers", desc = "Telescope: Buffers" }, + { "th", ":Telescope help_tags", desc = "Telescope: Help Tags" }, + { "to", ":Telescope oldfiles", desc = "Telescope: Recent Files" }, + { "tn", ":Telescope neoclip default", desc = "Telescope: Neoclip Buffer" }, + { "tr", ":Telescope resume", desc = "Telescope: Resume" }, + { "tR", ":Telescope registers", desc = "Telescope: Registers" }, + { "tt", ":Telescope file_browser", desc = "Telescope: File Tree" }, + { "ts", ":Telescope spell_suggest", desc = "Telescope: Spell Suggest" }, + { "tl", ":Telescope resume", desc = "Telescope: Previous State" }, + { "tT", ":TodoTelescope", desc = "Telescope: Todo Items" }, + { "tk", ":Telescope keymaps", desc = "Telescope: Keymaps" }, + { "tc", ":Telescope commands", desc = "Telescope: Commands" }, + { "tu", ":Telescope undo", desc = "Telescope: Undo History" }, + { "tm", ":Telescope man_pages", desc = "Telescope: Man Pages" }, + { "lq", ":Telescope diagnostics bufnr=0", desc = "LSP: Telescope Diagnostics" }, + { "nv", ":Telescope notify", desc = "Notifications: Search" }, }, dependencies = { - "nvim-telescope/telescope-media-files.nvim", "nvim-telescope/telescope-file-browser.nvim", "artart222/telescope_find_directories", "nvim-telescope/telescope-ui-select.nvim", "debugloop/telescope-undo.nvim", "rcarriga/nvim-notify", { "nvim-telescope/telescope-smart-history.nvim", dependencies = "tami5/sqlite.lua" }, - { "nvim-telescope/telescope-fzf-native.nvim", build = "make" }, + { "nvim-telescope/telescope-fzf-native.nvim", build = "make" }, }, config = function() local telescope = require("telescope") @@ -119,10 +119,6 @@ return { buffer_previewer_maker = require("telescope.previewers").buffer_previewer_maker, }, extensions = { - media_files = { - filetypes = { "png", "webp", "jpg", "jpeg" }, - find_cmd = "rg", - }, ["ui-select"] = { require("telescope.themes").get_dropdown(), }, @@ -144,7 +140,6 @@ return { }, }) - telescope.load_extension("media_files") telescope.load_extension("find_directories") telescope.load_extension("file_browser") telescope.load_extension("notify") @@ -184,7 +179,7 @@ return { "Wikipedia", ("https://en.wikipedia.org/w/index.php\\?search\\=" .. search:gsub(" ", "+")), }, - { "Github", ("https://github.com/search\\?q\\=" .. search:gsub(" ", "+")) }, + { "Github", ("https://github.com/search\\?q\\=" .. search:gsub(" ", "+")) }, }, entry_maker = function(entry) return { value = entry, display = entry[1], ordinal = entry[1] }