Added wilder! Better wild menu and ui~
This commit is contained in:
parent
88628d13a5
commit
42c815505a
|
@ -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")
|
||||||
|
|
|
@ -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
28
lua/plugins/wilder.lua
Normal 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'
|
||||||
|
})
|
||||||
|
))
|
Loading…
Reference in a new issue