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

setup_buffer() fails if global config.enabled is false #744

Closed
brglng opened this issue Oct 20, 2023 · 2 comments · Fixed by #750
Closed

setup_buffer() fails if global config.enabled is false #744

brglng opened this issue Oct 20, 2023 · 2 comments · Fixed by #750
Labels
bug Something isn't working

Comments

@brglng
Copy link

brglng commented Oct 20, 2023

Problem

If the global config.enabled is false, setup_buffer() fails with an error.

Steps to reproduce

  1. Use this global setup
require('ibl').setup {
    enabled = false,
}
  1. Call :lua require("ibl").setup_buffer(0, {enabled = true}) on a buffer after Neovim is started.
  2. See an error message attempt to index a nil value

Expected behavior

IBL should be enabled on the current buffer.

Neovim version (nvim -v)

0.9.2

@lukas-reineke
Copy link
Owner

Thanks, should be fixed now

@brglng
Copy link
Author

brglng commented Oct 23, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants