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

feat(#298): add refresh api #301

Merged
merged 1 commit into from
Sep 3, 2023
Merged

Conversation

simonmandlik
Copy link
Contributor

No description provided.

@alex-courtis alex-courtis changed the title refresh function exposed, fixes #298 feat(#298): add refresh api Sep 3, 2023
Copy link
Member

@alex-courtis alex-courtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for your contribution!

Tested OK:

vim.o.background="light"
vim.o.background="dark"

commented out autocommand

vim.o.background="light"
require("nvim-web-devicons").refresh()
vim.o.background="dark"
require("nvim-web-devicons").refresh()

- on `OptionSet` event for `background`, or
- after explicitly calling `require("nvim-web-devicons").refresh()`.

However, be advised that the plugin using nvim-web-devicons may have cached the icons.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@alex-courtis alex-courtis merged commit bc11ee2 into nvim-tree:master Sep 3, 2023
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