1

I want to change the colorscheme of nvim upon my system changing its appearance to light/dark. The best solution I've found is to check defaults read -g AppleInterfaceStyle every couple of seconds, but I'm wondering if there is a way for nvim to receive an external input and trigger an autocmd so that I can avoid checking every couple of seconds if the system appearance has changed.

1 Answer 1

0

Write Lua binary extension module (using Objective C, for example). Then register some OS callback (I guess there should be one for a "theme" change?) by native API.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.