Rewrite telescope plugin spec so dependencies make sense

This commit is contained in:
Evie Litherland-Smith 2023-03-10 10:05:06 +00:00
parent 6d3280286f
commit 25c4204419

View file

@ -1,31 +1,16 @@
return { return {
-- Telescope plugin
{
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
branch = "0.1.x", branch = "0.1.x",
dependencies = {
{ "nvim-lua/plenary.nvim" },
},
cmd = "Telescope", cmd = "Telescope",
config = function() config = function() require("telescope").setup(require "config.telescope") end,
require("telescope").setup(require "config.telescope") dependencies = {
require("telescope").load_extension "notify" {
require("telescope").load_extension "fzf" "nvim-lua/plenary.nvim",
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", "nvim-telescope/telescope-fzf-native.nvim",
build = "make", build = "make",
dependencies = { "nvim-telescope/telescope.nvim" }, dependencies = { "nvim-telescope/telescope.nvim" },
lazy = true, config = function() require("telescope").load_extension "fzf" end,
}, },
{ {
"tsakirist/telescope-lazy.nvim", "tsakirist/telescope-lazy.nvim",
@ -33,7 +18,7 @@ return {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
"folke/lazy.nvim", "folke/lazy.nvim",
}, },
lazy = true, config = function() require("telescope").load_extension "lazy" end,
}, },
{ {
"benfowler/telescope-luasnip.nvim", "benfowler/telescope-luasnip.nvim",
@ -41,7 +26,7 @@ return {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
"L3MON4D3/LuaSnip", "L3MON4D3/LuaSnip",
}, },
lazy = true, config = function() require("telescope").load_extension "luasnip" end,
}, },
{ {
"paopaol/telescope-git-diffs.nvim", "paopaol/telescope-git-diffs.nvim",
@ -49,21 +34,23 @@ return {
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
"sindrets/diffview.nvim", "sindrets/diffview.nvim",
}, },
lazy = true, config = function() require("telescope").load_extension "git_diffs" end,
}, },
{ {
"FeiyouG/command_center.nvim", "FeiyouG/command_center.nvim",
dependencies = { "nvim-telescope/telescope.nvim" }, dependencies = { "nvim-telescope/telescope.nvim" },
lazy = true, config = function() require("telescope").load_extension "command_center" end,
}, },
{ {
"barrett-ruth/telescope-http.nvim", "barrett-ruth/telescope-http.nvim",
dependencies = { "savq/paq-nvim", "nvim-telescope/telescope.nvim" }, dependencies = { "savq/paq-nvim", "nvim-telescope/telescope.nvim" },
lazy = true, config = function() require("telescope").load_extension "http" end,
}, },
{ {
"aaronhallaert/advanced-git-search.nvim", "aaronhallaert/advanced-git-search.nvim",
dependencies = { "nvim-telescope/telescope.nvim" }, dependencies = { "nvim-telescope/telescope.nvim" },
lazy = true, config = function() require("telescope").load_extension "advanced_git_search" end,
},
},
}, },
} }