feat(ui): add telescope ui select for improve UI

This commit is contained in:
doryan 2025-04-13 14:44:47 +04:00
parent 08e8e21300
commit 5a533becb0
2 changed files with 26 additions and 3 deletions

View File

@ -1,6 +1,29 @@
require("telescope").load_extension("ui-select")
require("telescope").setup({ require("telescope").setup({
defaults = { defaults = {
borderchars = { " ", " ", " ", " ", " ", " ", " ", " " } borderchars = { " ", " ", " ", " ", " ", " ", " ", " " }
},
extensions = {
["ui-select"] = {
require("telescope.themes").get_dropdown {
-- even more opts
}
-- pseudo code / specification for writing custom displays, like the one
-- for "codeactions"
-- specific_opts = {
-- [kind] = {
-- make_indexed = function(items) -> indexed_items, width,
-- make_displayer = function(widths) -> displayer
-- make_display = function(displayer) -> function(e)
-- make_ordinal = function(e) -> string
-- },
-- -- for example to disable the custom builtin "codeactions" display
-- do the following
-- codeactions = false,
-- }
}
} }
}) })

View File

@ -3,6 +3,9 @@ return {
{ {
'simrat39/inlay-hints.nvim', 'simrat39/inlay-hints.nvim',
}, },
{
'nvim-telescope/telescope-ui-select.nvim'
},
{ {
"akinsho/bufferline.nvim", "akinsho/bufferline.nvim",
}, },
@ -47,9 +50,6 @@ return {
}, },
{ {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
dependencies = {
'nvim-telescope/telescope-ui-select.nvim',
}
}, },
{ {
"williamboman/mason-lspconfig.nvim", "williamboman/mason-lspconfig.nvim",