Skip to content

fix: add an extra check for defined fg (#19)#20

Open
achadwick wants to merge 1 commit into
typicode:mainfrom
achadwick:fix-format-nil
Open

fix: add an extra check for defined fg (#19)#20
achadwick wants to merge 1 commit into
typicode:mainfrom
achadwick:fix-format-nil

Conversation

@achadwick

@achadwick achadwick commented May 13, 2026

Copy link
Copy Markdown

Just added an extra check for fg being undefined. This seems to fix it for me.

fix #19

Avoid trying to format a nil value. This situation occurs when lazy.nvim
displays UI at startup to install a plugin, and could potentially break
in other situations where not everything's fully defined.
@achadwick achadwick changed the title Add an extra definedness check for fg fix: add an extra check for defined fg (#19) May 14, 2026
@achadwick

Copy link
Copy Markdown
Author

Fixed up the commit message to be closer to local conventions

@achadwick

Copy link
Copy Markdown
Author

@typicode Should be good to merge now, and I'd appreciate a fix for this issue in the repo. Let me know if you need any further info.

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.

Error in Autocommands: "bad argument #2 to 'format' (number expected, got nil)" after lazy.nvim shows its UI at startup

1 participant