40 lines
807 B
Lua
40 lines
807 B
Lua
local actions = require('telescope.actions')
|
|
|
|
local mappingTab = {
|
|
i = {
|
|
["<cr>"] = actions.select_tab,
|
|
["<C-b>"] = actions.select_default,
|
|
}
|
|
}
|
|
|
|
local mappingDefault
|
|
|
|
require('telescope').setup{
|
|
pickers = {
|
|
-- Your special builtin config goes in here
|
|
buffers = {
|
|
sort_lastused = true,
|
|
previewer = false,
|
|
theme = "dropdown",
|
|
mappings = {
|
|
i = {
|
|
["<c-w>"] = actions.delete_buffer,
|
|
["<cr>"] = actions.select_default,
|
|
},
|
|
n = {
|
|
["<c-w>"] = actions.delete_buffer,
|
|
}
|
|
}
|
|
},
|
|
find_files = {
|
|
mappings = mappingTab
|
|
},
|
|
git_files = {
|
|
mappings = mappingTab
|
|
},
|
|
lsp_dynamic_workspace_symbols = {
|
|
mappings = mappingTab
|
|
},
|
|
}
|
|
}
|