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:
parent
3df60dd8f8
commit
ae5e51873b
3 changed files with 49 additions and 24 deletions
|
|
@ -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" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue