Compare commits

...

2 Commits

Author SHA1 Message Date
doryan 5a533becb0 feat(ui): add telescope ui select for improve UI 2025-04-13 14:44:47 +04:00
doryan 08e8e21300 refactor: clean config
refactor: clean config
2025-04-13 14:44:20 +04:00
4 changed files with 26 additions and 7 deletions

View File

@ -17,7 +17,6 @@ end
if vim.lsp.inlay_hint then if vim.lsp.inlay_hint then
vim.lsp.inlay_hint.enable(true, { 0 }) vim.lsp.inlay_hint.enable(true, { 0 })
end end
require("config.lazy") require("config.lazy")
require("config.plugins.autotag") require("config.plugins.autotag")
require("config.plugins.autocomplete") require("config.plugins.autocomplete")

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",

View File

@ -21,9 +21,6 @@ return {
{ {
"lukas-reineke/indent-blankline.nvim", "lukas-reineke/indent-blankline.nvim",
main = "ibl", main = "ibl",
---@module "ibl"
---@type ibl.config
opts = {},
}, },
{ {
"savq/melange-nvim" "savq/melange-nvim"