mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
37 lines
731 B
Lua
37 lines
731 B
Lua
local icons = require('config.icons')
|
|
|
|
return {
|
|
'nvim-telescope/telescope.nvim',
|
|
tag = '0.1.4',
|
|
main = 'telescope',
|
|
dependencies = {
|
|
'nvim-lua/plenary.nvim',
|
|
'nvim-tree/nvim-web-devicons'
|
|
},
|
|
keys = require('config.telescope'),
|
|
opts = function()
|
|
local actions = require("telescope.actions")
|
|
return {
|
|
defaults = {
|
|
path_display = { truncate = 1 },
|
|
prompt_prefix = ' ' .. icons.prompt .. ' ',
|
|
selection_caret = icons.current .. ' ',
|
|
multi_icon = icons.selected .. ' ',
|
|
file_ignore_patterns = {
|
|
".git/",
|
|
"node_modules/"
|
|
},
|
|
mappings = {
|
|
i = {
|
|
["<esc>"] = actions.close
|
|
}
|
|
}
|
|
},
|
|
pickers = {
|
|
find_files = {
|
|
hidden = true
|
|
}
|
|
}
|
|
}
|
|
end,
|
|
}
|