Open luiz00martins opened 2 years ago
I've set up wilder
and dashboard
but am unable to reproduce this issue.
One possibility is there is a BufEnter/Leave
autocommand in your config which is attempting to trigger for the wilder
float window. The float is closed after CmdlineLeave
which can cause issues for buffer autocommands.
Otherwise could you provide a minimal init.vim/lua
to reproduce the issue (i.e. including the other plugins like telescope
and dashboard
)? Thanks!
After some testing, I've pinpointed the problem to the renderer.
Here's a minimal example, which I hope you'll be able to reproduce:
local use = require('packer').use
use{"wbthomason/packer.nvim"}
use {
'gelguy/wilder.nvim',
config = function()
local wilder = require('wilder')
wilder.enable_cmdline_enter()
wilder.setup({
modes = {':', '/', '?'},
})
wilder.set_option('renderer', wilder.popupmenu_renderer{
highlighter = wilder.lua_pcre2_highlighter(),
})
end
}
Note: Dashboard should not be necessary to reproduce, as the error also happens in the initial [No Name]
buffer.
Edit: I have just switched to the experimental command-palette
renderer, and I can confirm that the bug doesn't happen there.
With the following config
opening neovim, and typing
:
,/
, or?
followed by something that has no autocompletion (e.g.:jaisujais
, or/aaaaaaaaaa
), results in the following error:[No Name]
buffer). If I open a file, and try it there, I get no error.