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

How to override icons that start with a dot? #52

Closed
hrqmonteiro opened this issue Apr 1, 2021 · 2 comments
Closed

How to override icons that start with a dot? #52

hrqmonteiro opened this issue Apr 1, 2021 · 2 comments

Comments

@hrqmonteiro
Copy link

require'nvim-web-devicons'.setup {
    -- your personnal icons can go here (to override)
    -- DevIcon will be appended to `name`
    override = {
        lua = {icon = "", color = colors.nord15, name = "lua"},
        .gitignore = {icon = "", color = colors.nord4, name = "GitIgnore"},
    },
    -- globally enable default icons (default to false)
    -- will get overriden by `get_icons` option
    default = true
}

This gives an error.

How do i properly override the .gitignore icons? (And others that start with a dot)

@akinsho
Copy link
Contributor

akinsho commented Apr 1, 2021

@hrqmonteiro you need to put .gitignore in quotes like ['.gitigore'] non alphabetical keys in lua need to be put in braces and quoted

@hrqmonteiro
Copy link
Author

@hrqmonteiro you need to put .gitignore in quotes like ['.gitigore'] non alphabetical keys in lua need to be put in braces and quoted

Thanks, man!

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

No branches or pull requests

2 participants