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 script on disabling icons.filetype.enabled #625

Closed
2 tasks done
rhodes-b opened this issue Nov 5, 2024 · 2 comments
Closed
2 tasks done

Setup script on disabling icons.filetype.enabled #625

rhodes-b opened this issue Nov 5, 2024 · 2 comments
Assignees
Labels
discussion A conversation documentation Improvements or additions to documentation
Milestone

Comments

@rhodes-b
Copy link

rhodes-b commented Nov 5, 2024

Preamble (you can delete this section):

  • Are you using a recent build (november 2020 & up) of neovim 0.5?
  • Do you certify having read the readme or are ready for being shamed for not having read the manual?

Description

If you want to disable the file icons it does not work if you place it inside of after/barbar.lua it will show the error.
If you place the setup inside of init.lua then it works properly

To Reproduce

dont install the file icons plugin and try to do setup in after like the typical plugin setup

Informations
Neovim version: 0.11.0-nightly+85295f

@rhodes-b
Copy link
Author

rhodes-b commented Nov 5, 2024

I did some more testing it should be noted that vim.g.barbar_auto_setup = false needs to go into init.lua while the rest of the setup can go into after/barbar.lua

Maybe this is obvious but I am pretty new to neovim and this is not pointed out, I can open a PR for this in the README

Anyways very nice plugin thanks for your work!

@Iron-E
Copy link
Collaborator

Iron-E commented Nov 9, 2024

This is something we are fixing in v2 (see #394).

See :h initialization but specifically :h load-plugins for the reason why barbar_auto_setup needs to be assigned outside of after 🙂

@Iron-E Iron-E closed this as not planned Won't fix, can't repro, duplicate, stale Nov 9, 2024
@Iron-E Iron-E self-assigned this Nov 9, 2024
@Iron-E Iron-E added documentation Improvements or additions to documentation discussion A conversation labels Nov 9, 2024
@Iron-E Iron-E added this to the unplanned milestone Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion A conversation documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants