1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim: use dressing and telescope for ui select.

This commit is contained in:
Henrik Hautakoski 2025-01-17 22:09:01 +01:00
parent 3df60dd8f8
commit ae5e51873b
3 changed files with 49 additions and 24 deletions

View file

@ -1,4 +1,32 @@
local ui = require("user.ui.telescope")
return {
{
'stevearc/dressing.nvim',
opts = {
input = {
border = { " " },
relative = "editor",
title_pos = "center",
mappings = {
n = {
["<Esc>"] = "Close",
["<CR>"] = "Confirm",
},
i = {
["<Esc>"] = "Close",
["<CR>"] = "Confirm",
["<Up>"] = "HistoryPrev",
["<Down>"] = "HistoryNext",
},
},
},
select = {
backend = { "telescope" },
telescope = require("telescope.themes").get_dropdown(ui.dropdown),
}
},
},
{ import = "user.plugins.ui.statusline" },
-- File explorer
{ import = "user.plugins.ui.neotree" },