Skip to content
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

CmdlineEnter is triggered when entering a file or directory via netrw #69

Open
saccarosium opened this issue Jan 18, 2025 · 0 comments
Open
Labels
bug issues reporting wrong behavior vim vim specific issues

Comments

@saccarosium
Copy link
Owner

Problem

When trying to lazy load plugins on CmdlineEnter, it seems that it is also triggered when opening a file or a directory in the netrw interface.

Steps to reproduce

Minimal config

No configuration is needed. Just create an autocommand to show a message on CmdlineEnter.

vim.api.nvim_create_autocmd({ "CmdlineEnter" }, {
	callback = function()
		vim.print('triggered CmdlineEnter')
	end
})

Now run nvim --clean -u minimal.lua and open a file or directory.

Expected behavior

No message printed.

Neovim version (nvim -v)

v0.10.0-dev-2507+g3df1211eb

Vim (not Nvim) behaves the same?

no

Operating system/version

Ubuntu 22.04.4 LTS

Terminal name/version

Terminal

$TERM environment variable

xterm-265color

Installation

build from repo

original issue: neovim/neovim#27726

@saccarosium saccarosium added bug issues reporting wrong behavior vim vim specific issues labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues reporting wrong behavior vim vim specific issues
Projects
None yet
Development

No branches or pull requests

1 participant