update icons to nerdfont icons 3.0x

This commit is contained in:
krolyxon 2023-05-15 01:13:53 +05:30
parent 9717742f52
commit 1d7a269262
5 changed files with 40 additions and 39 deletions

View File

@ -36,43 +36,44 @@ local options = {
formatting = {
format = function(_, vim_item)
local icons = {
Namespace = "",
Text = "",
Method = "",
Function = "",
Namespace = "󰌗",
Text = "󰉿",
Method = "󰆧",
Function = "󰆧",
Constructor = "",
Field = "",
Variable = "",
Class = "",
Field = "󰜢",
Variable = "󰀫",
Class = "󰠱",
Interface = "",
Module = "",
Property = "",
Unit = "",
Value = "",
Property = "󰜢",
Unit = "󰑭",
Value = "󰎠",
Enum = "",
Keyword = "",
Keyword = "󰌋",
Snippet = "",
Color = "",
File = "",
Reference = "",
Folder = "",
Color = "󰏘",
File = "󰈚",
Reference = "󰈇",
Folder = "󰉋",
EnumMember = "",
Constant = "",
Struct = "",
Constant = "󰏿",
Struct = "󰙅",
Event = "",
Operator = "",
TypeParameter = "",
Operator = "󰆕",
TypeParameter = "󰊄",
Table = "",
Object = "",
Object = "󰅩",
Tag = "",
Array = "[]",
Boolean = "",
Number = "",
Null = "",
String = "",
Null = "󰟢",
String = "󰉿",
Calendar = "",
Watch = "",
Watch = "󰥔",
Package = "",
Copilot = "",
}
vim_item.kind = string.format("%s %s", icons[vim_item.kind], vim_item.kind)
return vim_item

View File

@ -9,7 +9,7 @@ return {
ui = {
icons = {
ft = "",
lazy = " ",
lazy = "󰂠 ",
loaded = "",
not_loaded = "",
},

View File

@ -24,9 +24,9 @@ M.on_attach = function(client, bufnr)
vim.fn.sign_define(hl, { text = icon, numhl = hl, texthl = hl })
end
lspSymbol("Error", "")
lspSymbol("Info", "")
lspSymbol("Hint", "")
lspSymbol("Error", "󰅙")
lspSymbol("Info", "󰋼")
lspSymbol("Hint", "󰌵")
lspSymbol("Warn", "")
vim.diagnostic.config {

View File

@ -6,8 +6,8 @@ local options = {
ui = {
icons = {
package_pending = "",
package_installed = " ",
package_uninstalled = " ",
package_installed = "󰄳 ",
package_uninstalled = " 󰚌",
},
keymaps = {

View File

@ -12,7 +12,7 @@ local function LSP_progress()
local msg = Lsp.message or ""
local percentage = Lsp.percentage or 0
local title = Lsp.title or ""
local spinners = { "", "" }
local spinners = { "", "󰪞", "󰪟", "󰪠", "󰪢", "󰪣", "󰪤", "󰪥" }
local ms = vim.loop.hrtime() / 1000000
local frame = math.floor(ms / 120) % #spinners
local content = string.format(" %%<%s %s %s (%s%%%%) ", spinners[frame + 1], title, msg, percentage)