174 lines
4.4 KiB
Lua
174 lines
4.4 KiB
Lua
local M = {}
|
||
M.list = {
|
||
kind = {
|
||
Array = "",
|
||
Boolean = "蘒",
|
||
Class = "",
|
||
Color = "",
|
||
Constant = "",
|
||
Constructor = "",
|
||
Enum = "",
|
||
EnumMember = "",
|
||
Event = "",
|
||
Field = "",
|
||
File = "",
|
||
Folder = "",
|
||
Function = "",
|
||
Interface = "",
|
||
Key = "",
|
||
Keyword = "",
|
||
Method = "",
|
||
Module = "",
|
||
Namespace = "",
|
||
Null = "ﳠ",
|
||
Number = "",
|
||
Object = "",
|
||
Operator = "",
|
||
Package = "",
|
||
Property = "",
|
||
Reference = "",
|
||
Snippet = "",
|
||
String = "",
|
||
Struct = "",
|
||
Text = "",
|
||
TypeParameter = "",
|
||
Unit = "",
|
||
Value = "",
|
||
Variable = "",
|
||
},
|
||
git = {
|
||
LineAdded = "",
|
||
LineModified = "",
|
||
LineRemoved = "",
|
||
FileDeleted = "",
|
||
FileIgnored = "",
|
||
FileRenamed = "",
|
||
FileStaged = "S",
|
||
FileUnmerged = "",
|
||
FileUnstaged = "",
|
||
FileUntracked = "U",
|
||
Diff = "",
|
||
Repo = "",
|
||
Octoface = "",
|
||
Branch = "",
|
||
},
|
||
ui = {
|
||
ArrowCircleDown = "",
|
||
ArrowCircleLeft = "",
|
||
ArrowCircleRight = "",
|
||
ArrowCircleUp = "",
|
||
BoldArrowDown = "",
|
||
BoldArrowLeft = "",
|
||
BoldArrowRight = "",
|
||
BoldArrowUp = "",
|
||
BoldClose = "",
|
||
BoldDividerLeft = "",
|
||
BoldDividerRight = "",
|
||
BoldLineLeft = "▎",
|
||
BookMark = "",
|
||
BoxChecked = "",
|
||
Bug = "",
|
||
Stacks = " ",
|
||
Scopes = "",
|
||
Watches = "",
|
||
DebugConsole = " ",
|
||
Calendar = "",
|
||
Check = "",
|
||
ChevronRight = ">",
|
||
ChevronShortDown = "",
|
||
ChevronShortLeft = "",
|
||
ChevronShortRight = "",
|
||
ChevronShortUp = "",
|
||
Circle = "",
|
||
Close = "",
|
||
CloudDownload = "",
|
||
Code = "",
|
||
Comment = "",
|
||
Dashboard = "",
|
||
DividerLeft = "",
|
||
DividerRight = "",
|
||
DoubleChevronRight = "",
|
||
DoubleChevronLeft = "",
|
||
Ellipsis = "…",
|
||
EmptyFolder = "",
|
||
EmptyFolderOpen = "",
|
||
File = "",
|
||
FileSymlink = "",
|
||
Files = "",
|
||
FindFile = "",
|
||
FindText = "",
|
||
Fire = "",
|
||
Folder = "",
|
||
FolderOpen = "",
|
||
FolderSymlink = "",
|
||
Forward = "",
|
||
Gear = "",
|
||
History = "",
|
||
Lightbulb = "",
|
||
LineLeft = "▏",
|
||
LineMiddle = "│",
|
||
List = "",
|
||
Lock = "",
|
||
MinusCircle = "",
|
||
NewFile = "",
|
||
Note = "",
|
||
Package = "",
|
||
Pencil = "",
|
||
Plus = "",
|
||
Project = "",
|
||
Search = "",
|
||
SignIn = "",
|
||
SignOut = "",
|
||
Tab = "",
|
||
Table = "",
|
||
Target = "",
|
||
Telescope = "",
|
||
Text = "",
|
||
Tree = "",
|
||
Triangle = "契",
|
||
TriangleShortArrowDown = "",
|
||
TriangleShortArrowLeft = "",
|
||
TriangleShortArrowRight = "",
|
||
TriangleShortArrowUp = "",
|
||
},
|
||
diagnostics = {
|
||
BoldError = "",
|
||
Error = "",
|
||
BoldWarning = "",
|
||
Warning = "",
|
||
BoldInformation = "",
|
||
Information = "",
|
||
BoldQuestion = "",
|
||
Question = "",
|
||
BoldHint = "",
|
||
Hint = "",
|
||
Debug = "",
|
||
Trace = "✎",
|
||
},
|
||
progress = { "", "", "", "", "", "", "", "", "", "", "", "", "" },
|
||
misc = {
|
||
Robot = "ﮧ",
|
||
Squirrel = "",
|
||
Tag = "",
|
||
Watch = "",
|
||
Smiley = "ﲃ",
|
||
Package = "",
|
||
CircuitBoard = "",
|
||
},
|
||
}
|
||
M.setup = function()
|
||
local icons = M.list.diagnostics
|
||
local signs = {
|
||
DiagnosticSignError = icons.BoldError,
|
||
DiagnosticSignWarn = icons.BoldWarning,
|
||
DiagnosticSignHint = icons.BoldHint,
|
||
DiagnosticSignInfo = icons.BoldInformation
|
||
}
|
||
for type, icon in pairs(signs) do
|
||
local hl = type
|
||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })
|
||
end
|
||
end
|
||
|
||
return M
|