From ba4a870af2a35a0a1fdb1a174971a45c13b831d7 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 20 Feb 2023 18:10:23 +0000 Subject: [PATCH] Move telescope extension definition inside main telescope plugin file --- config/nvim/lua/config/dashboard.lua | 12 ---- config/nvim/lua/plugins/command_center.lua | 5 -- config/nvim/lua/plugins/telescope.lua | 71 +++++++++++++++---- .../nvim/lua/plugins/telescope_fzf_native.lua | 7 -- config/nvim/lua/plugins/telescope_http.lua | 5 -- 5 files changed, 59 insertions(+), 41 deletions(-) delete mode 100644 config/nvim/lua/plugins/command_center.lua delete mode 100644 config/nvim/lua/plugins/telescope_fzf_native.lua delete mode 100644 config/nvim/lua/plugins/telescope_http.lua diff --git a/config/nvim/lua/config/dashboard.lua b/config/nvim/lua/config/dashboard.lua index 69b05e2e..333dc9b4 100644 --- a/config/nvim/lua/config/dashboard.lua +++ b/config/nvim/lua/config/dashboard.lua @@ -14,18 +14,6 @@ return { action = "Telescope find_files", key = "f", }, - { - desc = " Apps", - group = "DiagnosticHint", - action = "Telescope app", - key = "a", - }, - { - desc = " dotfiles", - group = "Number", - action = "Telescope dotfiles", - key = "d", - }, }, }, } diff --git a/config/nvim/lua/plugins/command_center.lua b/config/nvim/lua/plugins/command_center.lua deleted file mode 100644 index f211e7e0..00000000 --- a/config/nvim/lua/plugins/command_center.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "FeiyouG/command_center.nvim", - dependencies = { "nvim-telescope/telescope.nvim" }, - lazy = true, -} diff --git a/config/nvim/lua/plugins/telescope.lua b/config/nvim/lua/plugins/telescope.lua index 517762ad..612d8ddf 100644 --- a/config/nvim/lua/plugins/telescope.lua +++ b/config/nvim/lua/plugins/telescope.lua @@ -1,15 +1,62 @@ return { - "nvim-telescope/telescope.nvim", - branch = "0.1.x", - dependencies = { - { "nvim-lua/plenary.nvim" }, + -- Telescope plugin + { + "nvim-telescope/telescope.nvim", + branch = "0.1.x", + dependencies = { + { "nvim-lua/plenary.nvim" }, + }, + cmd = "Telescope", + config = function() + require("telescope").setup(require "config.telescope") + require("telescope").load_extension "notify" + require("telescope").load_extension "fzf" + require("telescope").load_extension "lazy" + require("telescope").load_extension "luasnip" + require("telescope").load_extension "git_diffs" + require("telescope").load_extension "command_center" + require("telescope").load_extension "http" + end, + }, + -- Additional telescope extensions + { + "nvim-telescope/telescope-fzf-native.nvim", + build = "make", + dependencies = { "nvim-telescope/telescope.nvim" }, + lazy = true, + }, + { + "tsakirist/telescope-lazy.nvim", + dependencies = { + "nvim-telescope/telescope.nvim", + "folke/lazy.nvim", + }, + lazy = true, + }, + { + "benfowler/telescope-luasnip.nvim", + dependencies = { + "nvim-telescope/telescope.nvim", + "L3MON4D3/LuaSnip", + }, + lazy = true, + }, + { + "paopaol/telescope-git-diffs.nvim", + dependencies = { + "nvim-lua/plenary.nvim", + "sindrets/diffview.nvim", + }, + lazy = true, + }, + { + "FeiyouG/command_center.nvim", + dependencies = { "nvim-telescope/telescope.nvim" }, + lazy = true, + }, + { + "barrett-ruth/telescope-http.nvim", + dependencies = { "savq/paq-nvim", "nvim-telescope/telescope.nvim" }, + lazy = true, }, - cmd = "Telescope", - config = function() - require("telescope").setup(require "config.telescope") - require("telescope").load_extension "notify" - require("telescope").load_extension "fzf" - require("telescope").load_extension "command_center" - require("telescope").load_extension "http" - end, } diff --git a/config/nvim/lua/plugins/telescope_fzf_native.lua b/config/nvim/lua/plugins/telescope_fzf_native.lua deleted file mode 100644 index 298b9407..00000000 --- a/config/nvim/lua/plugins/telescope_fzf_native.lua +++ /dev/null @@ -1,7 +0,0 @@ -return { - "nvim-telescope/telescope-fzf-native.nvim", - build = "make", - dependencies = { "nvim-telescope/telescope.nvim" }, - lazy = true, - config = function() require("telescope").load_extension "fzf" end, -} diff --git a/config/nvim/lua/plugins/telescope_http.lua b/config/nvim/lua/plugins/telescope_http.lua deleted file mode 100644 index 040e045a..00000000 --- a/config/nvim/lua/plugins/telescope_http.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "barrett-ruth/telescope-http.nvim", - dependencies = { "savq/paq-nvim", "nvim-telescope/telescope.nvim" }, - lazy = true, -}