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

fix(icons): match new Nerd Fonts 3.0.0 release #114

Merged
merged 1 commit into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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