Comments (4)
There's a few problems wrong with the config, mostly caused by using wilder#wildmenu_renderer()
options in wilder#popupmenu_renderer()
:
wilder#basic_highlighter()
should be under thehighlighter
option, nothighlights
. Theapply_highlights
option is deprecated in favour ofhighlighter
, so you can remove that option.wilder#query_common_subsequence_spans()
is also the old name ofwilder#basic_highlighter()
.separator
is not used in the popupmenu and should be removedleft
andright
take different kinds of arguments so the wildmenu items cannot be reused here.
This minimal config should work for you:
call wilder#set_option('renderer', wilder#popupmenu_renderer({
\ 'highlighter': wilder#basic_highlighter(),
\ }))
To decorate the popupmenu a bit more:
" wilder#popupmenu_devicons() needs 'ryanoasis/vim-devicons' to be installed
call wilder#set_option('renderer', wilder#popupmenu_renderer({
\ 'highlighter': wilder#basic_highlighter(),
\ 'left': [
\ wilder#popupmenu_devicons(),
\ wilder#popupmenu_buffer_flags(),
\ ],
\ 'right': [
\ ' ',
\ wilder#popupmenu_spinner(),
\ wilder#popupmenu_scrollbar(),
\ ],
\ }))
I did a big renaming of the API in #29 so for wildmenu the left
or right
items are prefixed with wilder#wildmenu_...
and for popupmenu they are prefixed with wilder#popupmenu...
. The old names can still be used for backwards compatability and I apologise if this created more confusion, but moving forward the new names should give a better indication of where they can be used.
from wilder.nvim.
Thank you, it works like a charm and looks great: I will be having a look at the changelog of #29 to be better informed. For reference (if someone else comes across this issue) I am using:
call wilder#set_option('renderer', wilder#renderer_mux({
\ ':': wilder#popupmenu_renderer({
\ 'highlighter': wilder#basic_highlighter(),
\ }),
\ '/': wilder#wildmenu_renderer(
\ wilder#lightline_theme({
\ 'highlights': {},
\ 'highlighter': wilder#basic_highlighter(),
\ 'separator': ' ยท ',
\ })
\ ),
\ }))
One last question: is it possible to determine the height of the popup menu when it opens, namely to customise how many items are being shown at a first glance?
from wilder.nvim.
Yes, the max_height
option does this.
You can set it to a string e.g. '50%'
so it takes up to 50% of Neovim's height or to a number 20
(note: no quotes) so it takes up to 20 lines in height.
:h wilder#popupmenu_renderer()
will describe more of the other options (e.g. max_width
).
from wilder.nvim.
Awesome, this will do. Feel free to close this issue! :)
from wilder.nvim.
Related Issues (20)
- Relative to `pwd` path
- Wilder slow on `:!` HOT 1
- File finder: customizable behavior on should_use_file_finder HOT 1
- Changing the background color HOT 1
- Strange off-by-one error when hitting <Tab> in the command line HOT 3
- `_wilder_python_search` error when searching with `/` HOT 2
- Highlight the candidates
- Wilder removes topline in buffer in .10 nightly
- Wilder pop up breaks lualine "diff" component
- The popup menu's color is weird HOT 1
- I entered / in cmdline and received this error HOT 6
- Issue with wilder when trying to select commands(TAB) HOT 1
- Trying to install wilder correctly for NvChad, getting Unknown function _wilder_python_file_finder HOT 1
- Semshi/Wilder conflict HOT 6
- Configure to operate similarly to wildmode=list:longest?
- "error caught in async handler" when searching HOT 1
- Popupmenu_render only works on 1st table.
- Bug when trying to save harpoon buffer
- How to select the first listed item by default? HOT 5
- Unknown function: _wilder_python_search HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wilder.nvim.