2024-04-27 16:02:41 +01:00
|
|
|
local telescope = require('telescope')
|
|
|
|
local actions = require("telescope.actions")
|
|
|
|
|
|
|
|
telescope.setup {
|
|
|
|
defaults = {
|
|
|
|
layout_strategy = "horizontal",
|
2024-05-26 16:18:00 +01:00
|
|
|
path_display = { "filename_first" },
|
2024-04-27 16:02:41 +01:00
|
|
|
mappings = {
|
|
|
|
i = {
|
|
|
|
["<esc>"] = actions.close,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
pickers = {
|
|
|
|
find_files = {
|
|
|
|
previewer = false,
|
2024-05-01 18:52:16 +01:00
|
|
|
layout_strategy = "center",
|
|
|
|
layout_config = {
|
2024-04-27 16:02:41 +01:00
|
|
|
height = 0.7,
|
2024-05-01 18:52:16 +01:00
|
|
|
width = 0.5
|
2024-04-27 16:02:41 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
live_grep = {
|
|
|
|
only_sort_text = true,
|
|
|
|
previewer = true,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
extensions = {
|
|
|
|
["ui-select"] = {
|
|
|
|
require("telescope.themes").get_cursor {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
telescope.load_extension('fzf')
|
|
|
|
telescope.load_extension("ui-select")
|
2024-05-26 16:18:00 +01:00
|
|
|
--local builtin = require('telescope.builtin')
|
|
|
|
--vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
|
|
|
--vim.keymap.set('n', '<leader>fe', builtin.diagnostics, {})
|
|
|
|
--vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
|
|
|
|
--vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
|
|
|
|
--vim.keymap.set('n', '<leader>fs', builtin.treesitter, {})
|
|
|
|
--vim.keymap.set('n', '<leader>fh', builtin.help_tags, {})
|