29 lines
572 B
Lua
29 lines
572 B
Lua
require('telescope').load_extension('lsp_handlers')
|
|
local trouble = require('trouble.providers.telescope')
|
|
require('telescope').setup({
|
|
defaults={
|
|
mappings={
|
|
i = { ["<c-t>"] = trouble.open_with_trouble },
|
|
n = { ["<c-t>"] = trouble.open_with_trouble },
|
|
},
|
|
path_display={"smart"},
|
|
},
|
|
pickers={
|
|
find_files={
|
|
theme="dropdown",
|
|
layout_config={
|
|
horizontal= {width=0.5}
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
extensions = {
|
|
lsp_handlers = {
|
|
code_action = {
|
|
telescope = require('telescope.themes').get_dropdown({}),
|
|
},
|
|
},
|
|
},
|
|
})
|