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

View File

@ -9,7 +9,7 @@ return {
ui = { ui = {
icons = { icons = {
ft = "", ft = "",
lazy = " ", lazy = "󰂠 ",
loaded = "", loaded = "",
not_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 }) vim.fn.sign_define(hl, { text = icon, numhl = hl, texthl = hl })
end end
lspSymbol("Error", "") lspSymbol("Error", "󰅙")
lspSymbol("Info", "") lspSymbol("Info", "󰋼")
lspSymbol("Hint", "") lspSymbol("Hint", "󰌵")
lspSymbol("Warn", "") lspSymbol("Warn", "")
vim.diagnostic.config { vim.diagnostic.config {

View File

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

View File

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