From 4e8faf60d8d608f81c74848d7dab5e87efb9fe2b Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Fri, 11 Mar 2022 16:00:03 +0100 Subject: update config a bit, add trouble key and work tree --- lua/alpha/plugins.lua | 7 ------- lua/alpha/telescope/init.lua | 4 ++++ lua/alpha/telescope/mappings.lua | 1 + 3 files changed, 5 insertions(+), 7 deletions(-) (limited to 'lua/alpha') diff --git a/lua/alpha/plugins.lua b/lua/alpha/plugins.lua index 9c22d5c..1e6e196 100644 --- a/lua/alpha/plugins.lua +++ b/lua/alpha/plugins.lua @@ -154,13 +154,6 @@ return require('packer').startup(function(use) use { "folke/trouble.nvim", requires = "kyazdani42/nvim-web-devicons", - config = function() - require("trouble").setup { - -- your configuration comes here - -- or leave it empty to use the default settings - -- refer to the configuration section below - } - end } use 'dracula/vim' diff --git a/lua/alpha/telescope/init.lua b/lua/alpha/telescope/init.lua index 99a74e3..9092425 100644 --- a/lua/alpha/telescope/init.lua +++ b/lua/alpha/telescope/init.lua @@ -67,6 +67,10 @@ function M.projectionist () return require("telescope").extensions.projectionist.projectionist() end +function M.git_worktree () + return require("telescope").extensions.git_worktree.git_worktrees() +end + function M.laravel () vim.env.NO_TTY = 1 return require("telescope").extensions.laravel.laravel() diff --git a/lua/alpha/telescope/mappings.lua b/lua/alpha/telescope/mappings.lua index 8ffc15a..9acf5a6 100644 --- a/lua/alpha/telescope/mappings.lua +++ b/lua/alpha/telescope/mappings.lua @@ -35,6 +35,7 @@ map_tele("pe", "buffers") map_tele("pr", "treesitter") map_tele("bb", "file_browser") map_tele("gs", "git_status") +map_tele("gt", "git_worktree") map_tele("ve", "diagnostics") map_tele("fp", "my_plugins") -- cgit v1.2.3