Added wilder! Better wild menu and ui~

This commit is contained in:
Јован Ђокић-Шумарац 2023-08-10 00:23:12 +02:00
parent 88628d13a5
commit 42c815505a
3 changed files with 60 additions and 0 deletions

View file

@ -10,3 +10,4 @@ require("plugins.harpoon")
require("plugins.hlblocks") require("plugins.hlblocks")
require("plugins.gitsigns") require("plugins.gitsigns")
require("plugins.nvimtree") require("plugins.nvimtree")
require("plugins.wilder")

View file

@ -23,6 +23,37 @@ require("lazy").setup({
-- colorscheme -- colorscheme
"EdenEast/nightfox.nvim", "EdenEast/nightfox.nvim",
{
'gelguy/wilder.nvim',
config = function()
local wilder = require('wilder')
wilder.setup({modes = {':', '/', '?'}})
wilder.set_option('renderer', wilder.renderer_mux({
[':'] = wilder.popupmenu_renderer({
highlighter = wilder.basic_highlighter(),
}),
['/'] = wilder.wildmenu_renderer({
highlighter = wilder.basic_highlighter(),
}),
}))
wilder.set_option('renderer', wilder.popupmenu_renderer(
wilder.popupmenu_palette_theme({
-- 'single', 'double', 'rounded' or 'solid'
-- can also be a list of 8 characters, see :h wilder#popupmenu_palette_theme() for more details
border = 'rounded',
max_height = '75%', -- max height of the palette
min_height = 0, -- set to the same as 'max_height' for a fixed height window
prompt_position = 'top', -- 'top' or 'bottom' to set the location of the prompt
reverse = 0, -- set to 1 to reverse the order of the list, use in combination with 'prompt_position'
})
))
end,
},
-- Journaling and notes! with a calendar ! -- Journaling and notes! with a calendar !
{ {
"renerocksai/telekasten.nvim", "renerocksai/telekasten.nvim",

28
lua/plugins/wilder.lua Normal file
View file

@ -0,0 +1,28 @@
local wilder = require('wilder')
wilder.setup({modes = {':', '/', '?'}})
wilder.set_option('renderer', wilder.renderer_mux({
[':'] = wilder.popupmenu_renderer({
highlighter = wilder.basic_highlighter(),
}),
['/'] = wilder.wildmenu_renderer({
highlighter = wilder.basic_highlighter(),
}),
}))
wilder.set_option('renderer', wilder.popupmenu_renderer(
wilder.popupmenu_palette_theme({
-- 'single', 'double', 'rounded' or 'solid'
-- can also be a list of 8 characters, see :h wilder#popupmenu_palette_theme() for more details
border = 'single',
max_height = '30%', -- max height of the palette
min_height = '30%', -- set to the same as 'max_height' for a fixed height window
prompt_position = 'bottom', -- 'top' or 'bottom' to set the location of the prompt
reverse = 0, -- set to 1 to reverse the order of the list, use in combination with 'prompt_position'
})
))