fix: update deprecated nerd font icons

This commit is contained in:
Steven Arcangeli 2023-03-26 12:38:06 -07:00
parent a6b86fd357
commit 8a59ed2dc9
3 changed files with 14 additions and 14 deletions

View file

@ -350,30 +350,30 @@ local plain_icons = {
local nerd_icons = {
Array = "󱡠 ",
Boolean = "󰨙 ",
Class = " ",
Constant = " ",
Class = "󰆧 ",
Constant = "󰏿 ",
Constructor = "",
Enum = "",
EnumMember = "",
Event = "",
Field = "",
File = " ",
Function = " ",
File = "󰈙 ",
Function = "󰊕 ",
Interface = "",
Key = " ",
Method = " ",
Key = "󰌋 ",
Method = "󰊕 ",
Module = "",
Namespace = "󰦮 ",
Null = "󰟢 ",
Number = "󰎠 ",
Object = "",
Operator = " ",
Operator = "󰆕 ",
Package = "",
Property = "",
String = "",
Struct = " ",
Struct = "󰆼 ",
TypeParameter = "󰗴 ",
Variable = " ",
Variable = "󰀫 ",
Collapsed = "",
}

View file

@ -34,13 +34,13 @@
-- ## Examples
--
-- { "aerial" }
-- ﴯ MyClassName ⟩  my_method_name
-- 󰠱 MyClassName ⟩ 󰆧 my_method_name
--
-- { "aerial", dense = true }
-- MyClassName.my_method_name
-- 󰆧 MyClassName.my_method_name
--
-- { "aerial", depth = -1 }
-- my_method_name
-- 󰆧 my_method_name
local M = require("lualine.component"):extend()
local utils = require("lualine.utils.utils")

View file

@ -87,7 +87,7 @@ describe("config", function()
-- Icons
it("reads icons from the default table", function()
config.setup({ nerd_font = true, use_lspkind = false })
assert.equals(" ", config.get_icon(0, "Function", false))
assert.equals("󰊕 ", config.get_icon(0, "Function", false))
end)
it("reads icons from setup var", function()
config.setup({
@ -98,7 +98,7 @@ describe("config", function()
use_lspkind = false,
})
assert.equals("*", config.get_icon(0, "Function", false))
assert.equals(" ", config.get_icon(0, "Method", false))
assert.equals("󰊕 ", config.get_icon(0, "Method", false))
end)
it("fetches the collapsed version of icon", function()
config.setup({