50 lines
1.7 KiB
Lua
50 lines
1.7 KiB
Lua
return {
|
|
"nvim-telescope/telescope.nvim",
|
|
tag = "0.1.4",
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
},
|
|
--config = function(lazy, opts)
|
|
config = function()
|
|
local telescope = require('telescope')
|
|
telescope.load_extension('fzf')
|
|
telescope.load_extension('file_browser')
|
|
telescope.setup({
|
|
defaults = {
|
|
sorting_strategy = "ascending",
|
|
wrap_result = true,
|
|
layout_strategy = "horizontal",
|
|
layout_config = {
|
|
horizontal = {
|
|
prompt_position = "top",
|
|
preview_width = 0.4,
|
|
width = 0.75,
|
|
height = 0.75,
|
|
preview_cutoff = 90,
|
|
}
|
|
}
|
|
},
|
|
pickers = {
|
|
find_files = {
|
|
hidden = true
|
|
},
|
|
live_grep = {
|
|
additional_args = function()
|
|
return { '--hidden', '--glob', '!**/.git/*' }
|
|
end
|
|
},
|
|
grep_string = {
|
|
additional_args = function()
|
|
return { '--hidden', '--glob', '!**/.git/*' }
|
|
end
|
|
},
|
|
-- note: remove the 'builtin.' prefix.
|
|
["lsp_references"] = { wrap_results = true, },
|
|
["lsp_definitions"] = { wrap_results = true, },
|
|
["diagnostics"] = { wrap_results = true, },
|
|
["find_files"] = { wrap_results = true, },
|
|
["buffers"] = { sort_mru = true, ignore_current_buffer = true },
|
|
}
|
|
})
|
|
end
|
|
}
|