1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00
This commit is contained in:
Henrik Hautakoski 2024-06-23 16:12:05 +02:00
parent 35c3cc49d5
commit 08bf9aad64
14 changed files with 264 additions and 110 deletions

View file

@ -1,14 +1,17 @@
local icons = require("config.icons")
return function()
local icons = require("config.icons")
local actions = require("telescope.actions")
local dropdown_opts = {
previewer = false,
prompt_title = false,
layout_strategy = "horizontal",
layout_config = {
prompt_position = "top",
},
}
return {
defaults = {
border = {
prompt = { 1, 1, 1, 1 },
results = { 1, 1, 1, 1 },
preview = { 1, 1, 1, 1 },
},
path_display = { truncate = 1 },
prompt_prefix = " ",
selection_caret = icons.current .. " ",
@ -27,19 +30,18 @@ return function()
find_files = {
hidden = true,
},
buffers = {
theme = "dropdown",
previewer = false,
buffers = vim.tbl_deep_extend("force", dropdown_opts, {
theme = "dropdown",
mappings = {
i = {
["<c-d>"] = actions.delete_buffer + actions.move_to_top,
},
},
},
}),
},
extensions = {
["ui-select"] = {
require("telescope.themes").get_dropdown(),
require("telescope.themes").get_dropdown(dropdown_opts),
},
},
}