dotfiles/nvim/lua/telescope_config.lua

29 lines
572 B
Lua
Raw Normal View History

2022-08-30 12:43:04 +02:00
require('telescope').load_extension('lsp_handlers')
2023-03-14 16:52:36 +01:00
local trouble = require('trouble.providers.telescope')
2022-08-30 12:43:04 +02:00
require('telescope').setup({
2022-12-22 19:22:41 +01:00
defaults={
2023-03-14 16:52:36 +01:00
mappings={
i = { ["<c-t>"] = trouble.open_with_trouble },
n = { ["<c-t>"] = trouble.open_with_trouble },
},
2022-12-22 19:22:41 +01:00
path_display={"smart"},
},
pickers={
find_files={
theme="dropdown",
layout_config={
horizontal= {width=0.5}
}
}
},
2022-08-30 12:43:04 +02:00
extensions = {
lsp_handlers = {
code_action = {
telescope = require('telescope.themes').get_dropdown({}),
},
},
},
})