Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I want to replace 󰲡 (a 1 inside a circle), you can search nf-md-numeric_1_circle_outline on nerdfonts.com to see it. I would replace it with an Apple SF Symbol instance 1.circle:

CleanShot 2024-10-24 at 19 39 43@2x

I can paste its text character 􀀺 into a buffer inside Neovide and it shows without any extra steps or setup.

You must be logged in to vote

Replies: 1 comment · 4 replies

Comment options

You can override existing icons and add your own, see setup

Use :NvimWebDeviconsHiTest to see all icons and overrides.

e.g.

require("nvim-web-devicons").setup({
  -- override *.xml extension
  override_by_extension = {
    ["xml"] = {
      icon = "󰲡",
      color = "#00afff",
      cterm_color = "39",
      name = "Xml",
    },
  },
  -- override .gitignore name
  override_by_filename = {
    [".gitignore"] = {
      icon = "󰲡",
      color = "#20c2e3",
      cterm_color = "45",
      name = "Gitignore"
    }
  },
  -- create new extensions
  override = {
    ["foo"] = {
      icon = "󰲡",
      color = "#428850",
      cterm_color = "65",
      name = "Foo"
    }
  },
})
You must be logged in to vote
4 replies
@Oneechan69
Comment options

@alex-courtis Yeah I saw that but can you give an example for the icon I'm trying to change: 󰲡 (nf-md-numeric_1_circle_outline). I couldn't figure it out, for instance I tried changing both ["foo"] and "Foo" to nf-md-numeric_1_circle_outline but that doesn't work.

@alex-courtis
Comment options

Those examples do use the circle-1 icon - I just copied that icon character and pasted it into the icon field.

Were you perhaps using icon = "nf-md-numeric_1_circle_outline", ?

I'm using a nerd font in my browser and it shows the icon:
20241106_094648

@Oneechan69
Comment options

@alex-courtis I should've mentioned, I'm not trying to override file extensions, I want it so that whenever the nerd icon 󰲡 shows (like if a plugin with nvim-web-devicons as a dependency shows the icon), it shows SF symbol instead. I guess I should've specified that.

@Oneechan69
Comment options

@alex-courtis Nevermind, I thought nvim-web-devicons was for serving any icons (at least nerd font ones) but its not, its only for subsets like file types and programming languages.

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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.