simrat39 / symbols-outline.nvim

A tree like view for symbols in Neovim using the Language Server Protocol. Supports all your favourite languages.
MIT License
1.85k stars 97 forks source link

What font do you use? #230

Open GreenSleeper opened 1 year ago

GreenSleeper commented 1 year ago

I've tried several nerd fonts with wezterm, and some of the icons aren't rendered. I'm on windows sshing to linux server btw.

HCY-ASLEEP commented 1 year ago

I think it should be nerd font.

deanbear commented 12 months ago

I wonder too I use hack-nerd-font and jetbrains-mono-nerd-font , v3.02, it's still not rendered

deanbear commented 12 months ago

alright, i got it. some nerd-font v2 icons are obsolete in nerd-font v3. we can wait an upgrade for that.

see https://github.com/simrat39/symbols-outline.nvim/pull/225

kirusfg commented 11 months ago

Until the situation is resolved with the nerd fonts, here is how I configured my icons:

symbols = {
  File = { icon = "", hl = "@text.uri" },
  Module = { icon = "", hl = "@namespace" },
  Namespace = { icon = "", hl = "@namespace" },
  Package = { icon = "", hl = "@namespace" },
  Class = { icon = "", hl = "@type" },
  Method = { icon = "ƒ", hl = "@method" },
  Property = { icon = "", hl = "@method" },
  Field = { icon = "", hl = "@field" },
  Constructor = { icon = "", hl = "@constructor" },
  Enum = { icon = "", hl = "@type" },
  Interface = { icon = "", hl = "@type" },
  Function = { icon = "", hl = "@function" },
  Variable = { icon = "", hl = "@constant" },
  Constant = { icon = "", hl = "@constant" },
  String = { icon = "", hl = "@string" },
  Number = { icon = "#", hl = "@number" },
  Boolean = { icon = "", hl = "@boolean" },
  Array = { icon = "", hl = "@constant" },
  Object = { icon = "", hl = "@type" },
  Key = { icon = "", hl = "@type" },
  Null = { icon = "", hl = "@type" },
  EnumMember = { icon = "", hl = "@field" },
  Struct = { icon = "", hl = "@type" },
  Event = { icon = "", hl = "@type" },
  Operator = { icon = "", hl = "@operator" },
  TypeParameter = { icon = "", hl = "@parameter" },
  Component = { icon = "", hl = "@function" },
  Fragment = { icon = "", hl = "@constant" },
}