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

nvim-web-devicons enabled, but not installed #10

Closed
CleoMenezesJr opened this issue Sep 20, 2022 · 4 comments
Closed

nvim-web-devicons enabled, but not installed #10

CleoMenezesJr opened this issue Sep 20, 2022 · 4 comments
Labels
question Further information is requested

Comments

@CleoMenezesJr
Copy link

After a fresh install and using the Quick Start config, I get the following error:
Cybu: nvim-web-devicons enabled, but not installed
Icons are not shown, but all functions work perfectly

@ghillb
Copy link
Owner

ghillb commented Sep 20, 2022

Hi and thank you for the issue.
Per default, "kyazdani42/nvim-web-devicons" are enabled:

require("cybu").setup({
  style = {
    devicons = {
      enabled = true,             -- enable or disable web dev icons
    },
  },
})

Do you have "kyazdani42/nvim-web-devicons" installed? If not and you don't want to use them, you have to set enabled = false in the above example, for the warning to disappear.

I suppose you have used the non-packer quickstart? In that case, this warning can be triggered (you either have to also manually install the "kyazdani42/nvim-web-devicons" or disable the config key). If you have used the packer snippet, it should not throw a warning, after an :PackerSync & :PackerCompile.

@CleoMenezesJr
Copy link
Author

Hello, I already have the NVIM-Web-Devicons installed and yet, as well as in Quick Start in the documentation, there is requires with it.
requires = { "kyazdani42/nvim-web-devicons", "nvim-lua/plenary.nvim"}, -- optional for icon support

@ghillb
Copy link
Owner

ghillb commented Sep 20, 2022

Ok, let's check if, "nvim-web-devicons" are loaded correctly, are the icons showing up for other plugins, like for example lualine or nvim-tree?

If you don't have another plugin installed, that uses icons, you can check it like so:

Does :lua =require'nvim-web-devicons'.has_loaded() return true?
Does :lua =require'nvim-web-devicons'.get_icon('test.lua', 'lua', {}) return an icon and highlight, like "" "DevIconLua"?

@ghillb
Copy link
Owner

ghillb commented Sep 24, 2022

Closing, as this seems to be resolved.

@ghillb ghillb closed this as completed Sep 24, 2022
@ghillb ghillb added the question Further information is requested label Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants