Use tab only for some specific telescope builtins

This commit is contained in:
Oliver Hartmann 2021-09-17 09:30:25 +02:00
parent 39bf1eddce
commit 1939683919

View File

@ -1,13 +1,15 @@
local actions = require('telescope.actions') local actions = require('telescope.actions')
local mappingTab = {
i = {
["<cr>"] = actions.select_tab,
["<C-b>"] = actions.select_default,
}
}
local mappingDefault
require('telescope').setup{ require('telescope').setup{
defaults = {
mappings = {
i = {
["<cr>"] = actions.select_tab,
["<C-b>"] = actions.select_default,
}
},
},
pickers = { pickers = {
-- Your special builtin config goes in here -- Your special builtin config goes in here
buffers = { buffers = {
@ -23,6 +25,15 @@ require('telescope').setup{
["<c-w>"] = actions.delete_buffer, ["<c-w>"] = actions.delete_buffer,
} }
} }
} },
find_files = {
mappings = mappingTab
},
git_files = {
mappings = mappingTab
},
lsp_dynamic_workspace_symbols = {
mappings = mappingTab
},
} }
} }