Skip to content

Commit

Permalink
fix(icons): match new Nerd Fonts 3.0.0 release
Browse files Browse the repository at this point in the history
See the following links for more information:
- ryanoasis/nerd-fonts#365
- ryanoasis/nerd-fonts#1059 (comment)
  • Loading branch information
XenoPhex committed May 3, 2023
1 parent 83dc174 commit c3302f5
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 57 deletions.
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,32 +87,32 @@ Use the `setup` function to modify default parameters.
```lua
navic.setup {
icons = {
File = " ",
File = "󰈙 ",
Module = "",
Namespace = " ",
Namespace = "󰌗 ",
Package = "",
Class = " ",
Method = " ",
Class = "󰌗 ",
Method = "󰆧 ",
Property = "",
Field = "",
Constructor = "",
Enum = "",
Interface = "",
Function = " ",
Variable = " ",
Constant = " ",
String = " ",
Number = " ",
Enum = "󰕘",
Interface = "󰕘",
Function = "󰊕 ",
Variable = "󰆧 ",
Constant = "󰏿 ",
String = "󰀬 ",
Number = "󰎠 ",
Boolean = "",
Array = " ",
Object = " ",
Key = " ",
Null = " ",
Array = "󰅪 ",
Object = "󰅩 ",
Key = "󰌋 ",
Null = "󰟢 ",
EnumMember = "",
Struct = " ",
Struct = "󰌗 ",
Event = "",
Operator = " ",
TypeParameter = " ",
Operator = "󰆕 ",
TypeParameter = "󰊄 ",
},
lsp = {
auto_attach = false,
Expand Down Expand Up @@ -360,7 +360,7 @@ If you have a creative use case and want the raw context data to work with, you
{
name = "myclass",
type = "Class",
icon = " ",
icon = "󰌗 ",
kind = 5,
scope = {
start = { line = 1, character = 0 },
Expand All @@ -370,7 +370,7 @@ If you have a creative use case and want the raw context data to work with, you
{
name = "mymethod",
type = "Method",
icon = " ",
icon = "󰆧 ",
kind = 6,
scope = {
start = { line = 2, character = 4 },
Expand Down
36 changes: 18 additions & 18 deletions doc/navic.txt
Original file line number Diff line number Diff line change
Expand Up @@ -242,32 +242,32 @@ Use |navic.setup| to override any of the default options
Defaults >lua
navic.setup {
icons = {
File = " ",
File = "󰈙 ",
Module = " ",
Namespace = " ",
Namespace = "󰌗 ",
Package = " ",
Class = " ",
Method = " ",
Class = "󰌗 ",
Method = "󰆧 ",
Property = " ",
Field = " ",
Constructor = " ",
Enum = "",
Interface = "",
Function = " ",
Variable = " ",
Constant = " ",
String = " ",
Number = " ",
Enum = "󰕘",
Interface = "󰕘",
Function = "󰊕 ",
Variable = "󰆧 ",
Constant = "󰏿 ",
String = "󰀬 ",
Number = "󰎠 ",
Boolean = "◩ ",
Array = " ",
Object = " ",
Key = " ",
Null = " ",
Array = "󰅪 ",
Object = "󰅩 ",
Key = "󰌋 ",
Null = "󰟢 ",
EnumMember = " ",
Struct = " ",
Struct = "󰌗 ",
Event = " ",
Operator = " ",
TypeParameter = " ",
Operator = "󰆕 ",
TypeParameter = "󰊄 ",
},
lsp = {
auto_attach = false,
Expand Down
38 changes: 19 additions & 19 deletions lua/nvim-navic/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,33 @@ local M = {}

local config = {
icons = {
[1] = " ", -- File
[1] = "󰈙 ", -- File
[2] = "", -- Module
[3] = " ", -- Namespace
[3] = "󰌗 ", -- Namespace
[4] = "", -- Package
[5] = " ", -- Class
[6] = " ", -- Method
[5] = "󰌗 ", -- Class
[6] = "󰆧 ", -- Method
[7] = "", -- Property
[8] = "", -- Field
[9] = "", -- Constructor
[10] = "", -- Enum
[11] = "", -- Interface
[12] = " ", -- Function
[13] = " ", -- Variable
[14] = " ", -- Constant
[15] = " ", -- String
[16] = " ", -- Number
[10] = "󰕘", -- Enum
[11] = "󰕘", -- Interface
[12] = "󰊕 ", -- Function
[13] = "󰆧 ", -- Variable
[14] = "󰏿 ", -- Constant
[15] = "󰀬 ", -- String
[16] = "󰎠 ", -- Number
[17] = "", -- Boolean
[18] = " ", -- Array
[19] = " ", -- Object
[20] = " ", -- Key
[21] = " ", -- Null
[18] = "󰅪 ", -- Array
[19] = "󰅩 ", -- Object
[20] = "󰌋 ", -- Key
[21] = "󰟢 ", -- Null
[22] = "", -- EnumMember
[23] = " ", -- Struct
[23] = "󰌗 ", -- Struct
[24] = "", -- Event
[25] = " ", -- Operator
[26] = " ", -- TypeParameter
[255] = " ", -- Macro
[25] = "󰆕 ", -- Operator
[26] = "󰊄 ", -- TypeParameter
[255] = "󰉨 ", -- Macro
},
highlight = false,
separator = " > ",
Expand Down

0 comments on commit c3302f5

Please sign in to comment.