Move telescope extension definition inside main telescope plugin file

This commit is contained in:
Evie Litherland-Smith 2023-02-20 18:10:23 +00:00
parent 68a1009db7
commit ba4a870af2
5 changed files with 59 additions and 41 deletions

View file

@ -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",
},
},
},
}

View file

@ -1,5 +0,0 @@
return {
"FeiyouG/command_center.nvim",
dependencies = { "nvim-telescope/telescope.nvim" },
lazy = true,
}

View file

@ -1,4 +1,6 @@
return {
-- Telescope plugin
{
"nvim-telescope/telescope.nvim",
branch = "0.1.x",
dependencies = {
@ -9,7 +11,52 @@ return {
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,
},
}

View file

@ -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,
}

View file

@ -1,5 +0,0 @@
return {
"barrett-ruth/telescope-http.nvim",
dependencies = { "savq/paq-nvim", "nvim-telescope/telescope.nvim" },
lazy = true,
}