feat(ui): add telescope ui select for improve UI
This commit is contained in:
parent
08e8e21300
commit
5a533becb0
|
@ -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,
|
||||||
|
-- }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue