Skip to content

set icon #178

Answered by alex-courtis
xuyastc asked this question in Q&A
Discussion options

You must be logged in to vote

You can set that individual file to be a clone of .zshrc via something like:

  local icon, color, cterm_color = require'nvim-web-devicons'.get_icon_colors('.zshrc')

  require('nvim-web-devicons').set_icon({
    ['.zshrc_xuya_co'] = {
      icon = icon,
      color = color,
      cterm_color = cterm_color,
      name = "Zshrc",
    }
  })

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gegoune
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #176 on November 26, 2022 00:25.