From fe9236314a1f79960289959c941853da31c44d3c Mon Sep 17 00:00:00 2001 From: Steins7 Date: Tue, 11 Jul 2023 10:43:32 +0200 Subject: [PATCH] Fix Telescope config issues --- lua/plugins.lua | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index 2995dd7..2559058 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -207,14 +207,12 @@ local function manage_plugins() }, -- LSP alternative - ["https://github.com/preservim/tagbar.git" ] = { - packadd_hook = function() - vim.api.nvim_set_keymap('n', 't', ":TagbarToggle", {}) - end - }, + ["https://github.com/nvim-lua/plenary.nvim.git"] = {}, + ["https://github.com/ludovicchabant/vim-gutentags.git"] = {}, ["https://github.com/nvim-telescope/telescope.nvim.git"] = { packadd_after = { ["https://github.com/nvim-lua/plenary.nvim.git"] = true, + ["https://github.com/ludovicchabant/vim-gutentags.git"] = true, }, packadd_hook = function() require("telescope").setup{ @@ -251,7 +249,7 @@ local function manage_plugins() vim.api.nvim_set_keymap('n', 'tf', ":Telescope find_files", {}) vim.api.nvim_set_keymap('n', 'tg', ":Telescope live_grep", {}) vim.api.nvim_set_keymap('n', 'ts', ":Telescope grep_string", {}) - vim.api.nvim_set_keymap('n', 'tt', ":Telescope tags", {}) + vim.api.nvim_set_keymap('n', 'tt', ":Telescope current_buffer_tags", {}) vim.api.nvim_set_keymap('n', 'tc', ":Telescope git_commits", {}) vim.api.nvim_set_keymap('n', 'ta', ":Telescope git_status", {}) vim.api.nvim_set_keymap('n', 'td', ":Telescope lsp_definitions", {}) @@ -270,7 +268,6 @@ local function manage_plugins() vim.cmd('set signcolumn=number') end }, - ["https://github.com/nvim-lua/plenary.nvim.git"] = {}, ["https://github.com/sindrets/diffview.nvim.git"] = { packadd_after = { ["https://github.com/nvim-lua/plenary.nvim.git"] = true }, packadd_hook = function()