diff --git a/config/nvim/lua/plugins/telescope.lua b/config/nvim/lua/plugins/telescope.lua index 0b45c5d6..8fbf073b 100644 --- a/config/nvim/lua/plugins/telescope.lua +++ b/config/nvim/lua/plugins/telescope.lua @@ -1,69 +1,56 @@ return { - -- 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 "aerial" - require("telescope").load_extension "luasnip" - require("telescope").load_extension "git_diffs" - require("telescope").load_extension "command_center" - require("telescope").load_extension "http" - require("telescope").load_extension "advanced_git_search" - 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-telescope/telescope.nvim", + branch = "0.1.x", + cmd = "Telescope", + config = function() require("telescope").setup(require "config.telescope") end, + dependencies = { + { "nvim-lua/plenary.nvim", - "sindrets/diffview.nvim", + { + "nvim-telescope/telescope-fzf-native.nvim", + build = "make", + dependencies = { "nvim-telescope/telescope.nvim" }, + config = function() require("telescope").load_extension "fzf" end, + }, + { + "tsakirist/telescope-lazy.nvim", + dependencies = { + "nvim-telescope/telescope.nvim", + "folke/lazy.nvim", + }, + config = function() require("telescope").load_extension "lazy" end, + }, + { + "benfowler/telescope-luasnip.nvim", + dependencies = { + "nvim-telescope/telescope.nvim", + "L3MON4D3/LuaSnip", + }, + config = function() require("telescope").load_extension "luasnip" end, + }, + { + "paopaol/telescope-git-diffs.nvim", + dependencies = { + "nvim-lua/plenary.nvim", + "sindrets/diffview.nvim", + }, + config = function() require("telescope").load_extension "git_diffs" end, + }, + { + "FeiyouG/command_center.nvim", + dependencies = { "nvim-telescope/telescope.nvim" }, + config = function() require("telescope").load_extension "command_center" end, + }, + { + "barrett-ruth/telescope-http.nvim", + dependencies = { "savq/paq-nvim", "nvim-telescope/telescope.nvim" }, + config = function() require("telescope").load_extension "http" end, + }, + { + "aaronhallaert/advanced-git-search.nvim", + dependencies = { "nvim-telescope/telescope.nvim" }, + config = function() require("telescope").load_extension "advanced_git_search" end, + }, }, - 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, - }, - { - "aaronhallaert/advanced-git-search.nvim", - dependencies = { "nvim-telescope/telescope.nvim" }, - lazy = true, }, }