Use tab only for some specific telescope builtins
This commit is contained in:
parent
39bf1eddce
commit
1939683919
@ -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
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user