42 lines
1005 B
Lua
42 lines
1005 B
Lua
|
|
local g = vim.g
|
||
|
|
|
||
|
|
local fb_actions = require "telescope".extensions.file_browser.actions
|
||
|
|
|
||
|
|
local telescope_installer = require('telescope').setup({
|
||
|
|
defaults = {
|
||
|
|
-- Default configuration for telescope goes here:
|
||
|
|
previewer = true,
|
||
|
|
file_previewer = require'telescope.previewers'.vim_buffer_cat.new,
|
||
|
|
-- config_key = value,
|
||
|
|
mappings = {
|
||
|
|
i = {
|
||
|
|
-- map actions.which_key to <C-h> (default: <C-/>)
|
||
|
|
-- actions.which_key shows the mappings for your picker,
|
||
|
|
-- e.g. git_{create, delete, ...}_branch for the git_branches picker
|
||
|
|
["<C-h>"] = "which_key"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
pickers = {
|
||
|
|
find_files = {
|
||
|
|
theme = "dropdown",
|
||
|
|
}
|
||
|
|
},
|
||
|
|
extensions = {
|
||
|
|
file_browser = {
|
||
|
|
theme = "ivy",
|
||
|
|
-- disables netrw and use telescope-file-browser in its place
|
||
|
|
hijack_netrw = true,
|
||
|
|
mappings = {
|
||
|
|
["i"] = {
|
||
|
|
},
|
||
|
|
["n"] = {
|
||
|
|
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
})
|
||
|
|
|
||
|
|
require("telescope").load_extension "file_browser"
|