From 19396839191067f74ba3e20115cf55932eec4e03 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Fri, 17 Sep 2021 09:30:25 +0200 Subject: [PATCH] Use tab only for some specific telescope builtins --- lua/my_telescope.lua | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/lua/my_telescope.lua b/lua/my_telescope.lua index 812f9f6..174bd5b 100644 --- a/lua/my_telescope.lua +++ b/lua/my_telescope.lua @@ -1,13 +1,15 @@ local actions = require('telescope.actions') + +local mappingTab = { + i = { + [""] = actions.select_tab, + [""] = actions.select_default, + } +} + +local mappingDefault + require('telescope').setup{ - defaults = { - mappings = { - i = { - [""] = actions.select_tab, - [""] = actions.select_default, - } - }, - }, pickers = { -- Your special builtin config goes in here buffers = { @@ -23,6 +25,15 @@ require('telescope').setup{ [""] = actions.delete_buffer, } } - } + }, + find_files = { + mappings = mappingTab + }, + git_files = { + mappings = mappingTab + }, + lsp_dynamic_workspace_symbols = { + mappings = mappingTab + }, } }