From 42c815505a1c682bd28179787e5162e194cc8985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=88=D0=BE=D0=B2=D0=B0=D0=BD=20=D0=82=D0=BE=D0=BA=D0=B8?= =?UTF-8?q?=D1=9B-=D0=A8=D1=83=D0=BC=D0=B0=D1=80=D0=B0=D1=86?= Date: Thu, 10 Aug 2023 00:23:12 +0200 Subject: [PATCH] Added wilder! Better wild menu and ui~ --- lua/plugins/init.lua | 1 + lua/plugins/lazy.lua | 31 +++++++++++++++++++++++++++++++ lua/plugins/wilder.lua | 28 ++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 lua/plugins/wilder.lua diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 83583f3..476a7c5 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -10,3 +10,4 @@ require("plugins.harpoon") require("plugins.hlblocks") require("plugins.gitsigns") require("plugins.nvimtree") +require("plugins.wilder") diff --git a/lua/plugins/lazy.lua b/lua/plugins/lazy.lua index 741f5a8..8b9d0c4 100644 --- a/lua/plugins/lazy.lua +++ b/lua/plugins/lazy.lua @@ -23,6 +23,37 @@ require("lazy").setup({ -- colorscheme "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 ! { "renerocksai/telekasten.nvim", diff --git a/lua/plugins/wilder.lua b/lua/plugins/wilder.lua new file mode 100644 index 0000000..90ae67a --- /dev/null +++ b/lua/plugins/wilder.lua @@ -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' + }) +))