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

"Error detected while processing WinLeave Autocommands for "*"" when closing Lazy window #294

Closed
oschrenk opened this issue Oct 26, 2023 · 1 comment

Comments

@oschrenk
Copy link

oschrenk commented Oct 26, 2023

Describe the bug
I use lazy.nvim [1] as my plugin manager. I noticed a few errors when using it with gruvbox.

  1. Open Lazy with :Lazy
  2. Close with :q

Get error:

Error detected while processing WinLeave Autocommands for "*":
E21: Cannot make changes, 'modifiable' is off                                       

This does not happen if gruvbox is not loaded

To Reproduce
I use lazy.nvim [1] as my plugin manager. I noticed a few errors when using it with gruvbox.

  1. Open Lazy with :Lazy
  2. Close with :q

Get error:

Error detected while processing WinLeave Autocommands for "*":
E21: Cannot make changes, 'modifiable' is off                                       

I

Expected behavior
No error message closing

Additional context

I also notice an interaction issue with [2] which might be the same underlying issue. When I move out of the neovim window with Lazy open, I get

E11: Invalid in command-line window; <CR> executes, CTRL-C quits

but only if gruvbox theme is loaded (as opposed to caret for example).

[1] https://github.com/folke/lazy.nvim
[2] https://github.com/alexghergh/nvim-tmux-navigation

@oschrenk
Copy link
Author

I still don't know what the issue is but I don't have proof think it's the theme. I was loading plugins one by one and the issue appeared when gruvbox was loaded and then didn't appear when I loaded caret via :colorscheme caret . But now when I load caret via Lazy

return {
  "projekt0n/caret.nvim",
  lazy = false, -- make sure to load this during startup
  priority = 1000, -- make sure to load this before all other plugins
  config = function()
    require("caret").setup({})
    vim.cmd("colorscheme caret")
  end,
}

It also happens with caret. I need to investigate more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant