add new plugins
This commit is contained in:
parent
d6ad2d0ef7
commit
4bce08bc22
13 changed files with 479 additions and 322 deletions
58
lua/custom/plugins/wilder.lua
Normal file
58
lua/custom/plugins/wilder.lua
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
return {
|
||||
{
|
||||
"gelguy/wilder.nvim",
|
||||
keys = {
|
||||
":",
|
||||
"/",
|
||||
"?",
|
||||
},
|
||||
dependencies = {
|
||||
"catppuccin/nvim",
|
||||
},
|
||||
build = function() vim.fn["UpdateRemotePlugins"]() end,
|
||||
config = function()
|
||||
local wilder = require("wilder")
|
||||
local macchiato = require("catppuccin.palettes").get_palette("macchiato")
|
||||
|
||||
-- Create a highlight group for the popup menu
|
||||
local text_highlight =
|
||||
wilder.make_hl("WilderText", { { a = 1 }, { a = 1 }, { foreground = macchiato.text } })
|
||||
local mauve_highlight =
|
||||
wilder.make_hl("WilderMauve", { { a = 1 }, { a = 1 }, { foreground = macchiato.mauve } })
|
||||
|
||||
-- Enable wilder when pressing :, / or ?
|
||||
wilder.setup({ modes = { ":", "/", "?" } })
|
||||
|
||||
-- Enable fuzzy matching for commands and buffers
|
||||
wilder.set_option("pipeline", {
|
||||
wilder.branch(
|
||||
wilder.cmdline_pipeline({
|
||||
fuzzy = 1,
|
||||
}),
|
||||
wilder.vim_search_pipeline({
|
||||
fuzzy = 1,
|
||||
})
|
||||
),
|
||||
})
|
||||
|
||||
wilder.set_option(
|
||||
"renderer",
|
||||
wilder.popupmenu_renderer(wilder.popupmenu_border_theme({
|
||||
highlighter = wilder.basic_highlighter(),
|
||||
highlights = {
|
||||
default = text_highlight,
|
||||
border = mauve_highlight,
|
||||
accent = mauve_highlight,
|
||||
},
|
||||
pumblend = 5,
|
||||
min_width = "100%",
|
||||
min_height = "25%",
|
||||
max_height = "25%",
|
||||
border = "rounded",
|
||||
left = { " ", wilder.popupmenu_devicons() },
|
||||
right = { " ", wilder.popupmenu_scrollbar() },
|
||||
}))
|
||||
)
|
||||
end,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue