mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-08-07 11:35:06 +02:00
Added more plugins
This commit is contained in:
parent
d350db2449
commit
9e5256058d
8 changed files with 260 additions and 42 deletions
56
lua/custom/plugins/wilder.lua
Normal file
56
lua/custom/plugins/wilder.lua
Normal file
|
@ -0,0 +1,56 @@
|
|||
return {
|
||||
{
|
||||
'gelguy/wilder.nvim',
|
||||
keys = {
|
||||
':',
|
||||
'/',
|
||||
'?',
|
||||
},
|
||||
dependencies = {
|
||||
|
||||
'catppuccin/nvim',
|
||||
},
|
||||
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_height = '25%',
|
||||
max_height = '25%',
|
||||
border = 'rounded',
|
||||
left = { ' ', wilder.popupmenu_devicons() },
|
||||
right = { ' ', wilder.popupmenu_scrollbar() },
|
||||
})
|
||||
)
|
||||
end,
|
||||
build = ':UpdateRemotePlugins',
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue