update icons to nerdfont icons 3.0x
This commit is contained in:
parent
9717742f52
commit
1d7a269262
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ return {
|
||||||
ui = {
|
ui = {
|
||||||
icons = {
|
icons = {
|
||||||
ft = "",
|
ft = "",
|
||||||
lazy = "鈴 ",
|
lazy = " ",
|
||||||
loaded = "",
|
loaded = "",
|
||||||
not_loaded = "",
|
not_loaded = "",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ local options = {
|
||||||
ui = {
|
ui = {
|
||||||
icons = {
|
icons = {
|
||||||
package_pending = " ",
|
package_pending = " ",
|
||||||
package_installed = " ",
|
package_installed = " ",
|
||||||
package_uninstalled = "ﮊ ",
|
package_uninstalled = " ",
|
||||||
},
|
},
|
||||||
|
|
||||||
keymaps = {
|
keymaps = {
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Reference in New Issue