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:
Error detected while processing nvim_exec2()..modelines[1365]..OptionSet Autocommands for "filetype":
E12: Command not allowed in secure mode in current dir or tag search
Executing OptionSet Autocommands for "*"
autocommand <Lua 310: ~/.local/share/nvim/lazy/dropbar.nvim/lua/dropbar.lua:70>
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
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
'git',
'clone',
'--filter=blob:none',
'https://github.com/folke/lazy.nvim.git',
'--branch=stable', -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require('lazy').setup({
{ 'Bekaboo/dropbar.nvim', config = true },
{ 'folke/noice.nvim', dependencies = 'MunifTanjim/nui.nvim', config = true },
})
-- I'm sorry for not using the given template. I've only used lazy.nvim for
-- my nvim config and I truly wanted to provide a tested minimal config
-- that reproduces the error.
Steps to reproduce
- Save the configuration file above under
minimal.lua.
- In the same directory, create a file with the following content:
A text file.
vim:tw=78:ts=8:sw=2:et:ft=help:norl:
- Open Neovim with
nvim --clean -u minimal.lua test.txt
- Type
:h help
- Notice how Noice's command line get's stuck.
- Exit Neovim with
qa. Repeat step 4 but opening Neovim with nvim --clean -u minimal.lua test.txt -V10mynvim.log
- Open
mynvim.log and search for Error.
- Notice the errors about incorrectly processing autocommands from this plugin.
Expected behavior
For Neovim to behave as expected when using dropbar and noice.
Actual behavior
noice's command line gets stuck.
Additional information
No response
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 helpqa. Repeat step 4 but opening Neovim withnvim --clean -u minimal.lua test.txt -V10mynvim.logmynvim.logand search forError.Expected behavior
For Neovim to behave as expected when using
dropbarandnoice.Actual behavior
noice's command line gets stuck.Additional information
No response