-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Error when processing modelines when noice is installed #71
Comments
Please use the minimal config provided, do NOT use a plugin manager, it makes things harder to track. |
@Bekaboo okay, I'm sorry. This configuration should work then: local tmp = vim.env.TMPDIR or vim.env.TEMPDIR or vim.env.TMP or vim.env.TEMP or '/tmp'
local data = tmp .. '/' .. (vim.env.NVIM_APPNAME or 'nvim')
local packages_root = data .. '/site'
local cloned_root = packages_root .. '/pack/packages/start'
local plugins = {
{ url = 'https://github.com/Bekaboo/dropbar.nvim.git', path = 'dropbar.nvim' },
{ url = 'https://github.com/MunifTanjim/nui.nvim.git', path = 'nui.nvim' },
{ url = 'https://github.com/folke/noice.nvim.git', path = 'noice.nvim' },
}
vim.fn.mkdir(cloned_root, 'p')
vim.opt.pp:prepend(packages_root)
vim.opt.rtp:prepend(packages_root)
for _, plugin in ipairs(plugins) do
local url = plugin.url
local path = plugin.path
local cloned_path = cloned_root .. '/' .. path
if not vim.loop.fs_stat(cloned_path) then
vim.fn.system({ 'git', 'clone', url, cloned_path })
end
end
require('dropbar').setup()
require('noice').setup() |
I again to emphasize how I'm not trying to point any fingers here and that I'm aware that I'm just trying to better understand the issue :) |
Take it easy, I'm here to help people. Using the default minimal repro config just make the procedure easier and more efficient. However I cannot reproduce the error on my side: Could you double check if the minimal config is correct? |
@Bekaboo very interesting. I can reproduce the issue from my side: Screen.Recording.2023-08-15.at.7.55.45.PM.movNot sure if it makes a difference, but could you try pressing |
@MariaSolOs Sorry, forgot to use proper modeline when I test. 😕 However, after adding the modeline the result is the same: |
@Bekaboo what about if you hit |
@Bekaboo that's fair. At least you can reproduce it now and I'm not going insane 😂 What are your thoughts on the autocommand error messages though? I'm not an expert in modelines and when they should be updated/ignored with autocommands, but is the one that's triggering the error expected? |
Not sure why, but from my experience noice.nvim uses lots of hacks and is prone to cause issues for other (UI) plugins. I am considering adding an option to configure the triggering events and patterns that calls the |
@MariaSolOs #70 has landed, now you can control attach events through |
@Bekaboo I confirm that removing |
Maybe it would be better to use |
Description
When opening a file that has a modeline, strange things happen when opening/closing buffers. Moreover, I see the following error in my debug logs:
Disclaimer that this happens when using this plugin with
noice
, and so it might not be this plugin's fault. However, the error logs point to this plugin, so I'll start with creating the issue here.nvim version
v0.10.0-dev-836+g6d93bdd45
dropbar.nvim version
c47d764
Operating system and version
macOS Ventura 13.5
Minimal config
Steps to reproduce
minimal.lua
.nvim --clean -u minimal.lua test.txt
:h help
qa
. Repeat step 4 but opening Neovim withnvim --clean -u minimal.lua test.txt -V10mynvim.log
mynvim.log
and search forError
.Expected behavior
For Neovim to behave as expected when using
dropbar
andnoice
.Actual behavior
noice
's command line gets stuck.Additional information
No response
The text was updated successfully, but these errors were encountered: