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

fix open_automatic not working #203

Closed
wants to merge 1 commit into from
Closed

fix open_automatic not working #203

wants to merge 1 commit into from

Conversation

cshuaimin
Copy link
Contributor

I set open_automatic = true but aerial window not shows when I open a supported buffer.

lua=require'aerial.window'.maybe_open_automatic() shows E5108: Error executing lua ...vim/site/pack/lazy/opt/aerial.nvim/lua/aerial/window.lua:279: attempt to call field 'open_automatic' (a nil value), and lua=require'aerial.config'.open_automatic is nil.

So maybe it's not initialized?

@stevearc
Copy link
Owner

stevearc commented Jan 5, 2023

This is not the fix; that logic is intended to only run do_setup() if the setup has already completed, and defer it if not.

I fiddled around a bit and I think I've found what's causing the issue. Can you give it another try, and if you still have problems can you post an issue with your full aerial config?

@cshuaimin
Copy link
Contributor Author

ea86cd2 fixed the issue, thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants