From 1d7a269262a04d114f24f0e02c6d04d9e14252eb Mon Sep 17 00:00:00 2001 From: krolyxon Date: Mon, 15 May 2023 01:13:53 +0530 Subject: [PATCH] update icons to nerdfont icons 3.0x --- lua/plugins/configs/cmp.lua | 65 +++++++++++++++--------------- lua/plugins/configs/lazy_nvim.lua | 2 +- lua/plugins/configs/lspconfig.lua | 6 +-- lua/plugins/configs/mason.lua | 4 +- lua/plugins/configs/statusline.lua | 2 +- 5 files changed, 40 insertions(+), 39 deletions(-) diff --git a/lua/plugins/configs/cmp.lua b/lua/plugins/configs/cmp.lua index 438257e..3c2b0cf 100644 --- a/lua/plugins/configs/cmp.lua +++ b/lua/plugins/configs/cmp.lua @@ -36,43 +36,44 @@ local options = { formatting = { format = function(_, vim_item) local icons = { - Namespace = "", - Text = " ", - Method = " ", - Function = " ", - Constructor = " ", - Field = "ﰠ ", - Variable = " ", - Class = "ﴯ ", - Interface = " ", - Module = " ", - Property = "ﰠ ", - Unit = "塞 ", - Value = " ", - Enum = " ", - Keyword = " ", - Snippet = " ", - Color = " ", - File = " ", - Reference = " ", - Folder = " ", - EnumMember = " ", - Constant = " ", - Struct = "פּ ", - Event = " ", - Operator = " ", - TypeParameter = " ", + Namespace = "󰌗", + Text = "󰉿", + Method = "󰆧", + Function = "󰆧", + Constructor = "", + Field = "󰜢", + Variable = "󰀫", + Class = "󰠱", + Interface = "", + Module = "", + Property = "󰜢", + Unit = "󰑭", + Value = "󰎠", + Enum = "", + Keyword = "󰌋", + Snippet = "", + Color = "󰏘", + File = "󰈚", + Reference = "󰈇", + Folder = "󰉋", + EnumMember = "", + Constant = "󰏿", + Struct = "󰙅", + Event = "", + Operator = "󰆕", + TypeParameter = "󰊄", Table = "", - Object = " ", + Object = "󰅩", Tag = "", Array = "[]", - Boolean = " ", - Number = " ", - Null = "ﳠ", - String = " ", + Boolean = "", + Number = "", + Null = "󰟢", + String = "󰉿", Calendar = "", - Watch = " ", + Watch = "󰥔", Package = "", + Copilot = "", } vim_item.kind = string.format("%s %s", icons[vim_item.kind], vim_item.kind) return vim_item diff --git a/lua/plugins/configs/lazy_nvim.lua b/lua/plugins/configs/lazy_nvim.lua index 6ccff4b..f9999e1 100644 --- a/lua/plugins/configs/lazy_nvim.lua +++ b/lua/plugins/configs/lazy_nvim.lua @@ -9,7 +9,7 @@ return { ui = { icons = { ft = "", - lazy = "鈴 ", + lazy = "󰂠 ", loaded = "", not_loaded = "", }, diff --git a/lua/plugins/configs/lspconfig.lua b/lua/plugins/configs/lspconfig.lua index bb13bbc..76c9ff7 100644 --- a/lua/plugins/configs/lspconfig.lua +++ b/lua/plugins/configs/lspconfig.lua @@ -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 { diff --git a/lua/plugins/configs/mason.lua b/lua/plugins/configs/mason.lua index fdea863..891299b 100644 --- a/lua/plugins/configs/mason.lua +++ b/lua/plugins/configs/mason.lua @@ -6,8 +6,8 @@ local options = { ui = { icons = { package_pending = " ", - package_installed = " ", - package_uninstalled = "ﮊ ", + package_installed = "󰄳 ", + package_uninstalled = " 󰚌", }, keymaps = { diff --git a/lua/plugins/configs/statusline.lua b/lua/plugins/configs/statusline.lua index a9aa740..0c2e4f4 100644 --- a/lua/plugins/configs/statusline.lua +++ b/lua/plugins/configs/statusline.lua @@ -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)