From 83393a2abe7d7d97b61e90184e4da2dea274f789 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Tue, 19 Nov 2024 12:09:55 +0700 Subject: [PATCH] git: uses opts for telescope.nvim --- lua/plugins/git.lua | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/lua/plugins/git.lua b/lua/plugins/git.lua index a09863c..d4bd3cc 100644 --- a/lua/plugins/git.lua +++ b/lua/plugins/git.lua @@ -19,17 +19,7 @@ return { mode = { "v" }, }, }, - config = function() - -- optional: setup telescope before loading the extension - require("telescope").setup { - -- move this to the place where you call the telescope setup function - extensions = { - advanced_git_search = { - -- See Config - }, - }, - } - + init = function() require("telescope").load_extension "advanced_git_search" end, dependencies = { @@ -43,4 +33,12 @@ return { "sindrets/diffview.nvim", }, }, + { + "telescope.nvim", + opts = { + extensions = { + advanced_git_search = {}, + }, + }, + }, }