enc: add icons to outline

This commit is contained in:
Pojok Code 2024-11-14 06:43:36 +07:00
parent 835b1706b2
commit d186be6aec
2 changed files with 223 additions and 220 deletions

View file

@ -73,36 +73,37 @@ M = {
"rockerBOO/symbols-outline.nvim", "rockerBOO/symbols-outline.nvim",
cmd = "SymbolsOutline", cmd = "SymbolsOutline",
config = function() config = function()
local icons = require("pcode.user.icons").kind
require("symbols-outline").setup({ require("symbols-outline").setup({
symbols = { symbols = {
File = { icon = "󰈔", hl = "@text.uri" }, File = { icon = icons.File, hl = "@text.uri" },
Module = { icon = "", hl = "@namespace" }, Module = { icon = icons.Module, hl = "@namespace" },
Namespace = { icon = "󰅪", hl = "@namespace" }, Namespace = { icon = icons.Namespace, hl = "@namespace" },
Package = { icon = "", hl = "@namespace" }, Package = { icon = icons.Package, hl = "@namespace" },
Class = { icon = "𝓒", hl = "@type" }, Class = { icon = icons.Class, hl = "@type" },
Method = { icon = "ƒ", hl = "@method" }, Method = { icon = icons.Method, hl = "@method" },
Property = { icon = "", hl = "@method" }, Property = { icon = icons.Property, hl = "@method" },
Field = { icon = "", hl = "@field" }, Field = { icon = icons.Field, hl = "@field" },
Constructor = { icon = "", hl = "@constructor" }, Constructor = { icon = icons.Constructor, hl = "@constructor" },
Enum = { icon = "", hl = "@type" }, Enum = { icon = icons.Enum, hl = "@type" },
Interface = { icon = "", hl = "@type" }, Interface = { icon = icons.Interface, hl = "@type" },
Function = { icon = "", hl = "@function" }, Function = { icon = icons.Function, hl = "@function" },
Variable = { icon = "", hl = "@constant" }, Variable = { icon = icons.Variable, hl = "@constant" },
Constant = { icon = "", hl = "@constant" }, Constant = { icon = icons.Constant, hl = "@constant" },
String = { icon = "𝓐", hl = "@string" }, String = { icon = icons.String, hl = "@string" },
Number = { icon = "#", hl = "@number" }, Number = { icon = icons.Number, hl = "@number" },
Boolean = { icon = "󰨙 ", hl = "@boolean" }, Boolean = { icon = icons.Boolean, hl = "@boolean" },
Array = { icon = "", hl = "@constant" }, Array = { icon = icons.Array, hl = "@constant" },
Object = { icon = "⦿", hl = "@type" }, Object = { icon = icons.Object, hl = "@type" },
Key = { icon = "🔐", hl = "@type" }, Key = { icon = icons.Key, hl = "@type" },
Null = { icon = "NULL", hl = "@type" }, Null = { icon = icons.Null, hl = "@type" },
EnumMember = { icon = "", hl = "@field" }, EnumMember = { icon = icons.EnumMember, hl = "@field" },
Struct = { icon = "𝓢", hl = "@type" }, Struct = { icon = icons.Struct, hl = "@type" },
Event = { icon = "🗲", hl = "@type" }, Event = { icon = icons.Event, hl = "@type" },
Operator = { icon = "+", hl = "@operator" }, Operator = { icon = icons.Operator, hl = "@operator" },
TypeParameter = { icon = "𝙏", hl = "@parameter" }, TypeParameter = { icon = icons.TypeParameter, hl = "@parameter" },
Component = { icon = "󰅴", hl = "@function" }, Component = { icon = icons.Component, hl = "@function" },
Fragment = { icon = "󰅴", hl = "@constant" }, Fragment = { icon = icons.Fragment, hl = "@constant" },
}, },
}) })
end, end,

View file

@ -1,194 +1,196 @@
return { return {
kind = { kind = {
Boolean = "󰨙", Boolean = "󰨙",
Color = "", Color = "",
Codeium = "󰘦", Codeium = "󰘦",
Control = "", Control = "",
Collapsed = "", Collapsed = "",
Copilot = "", Component = "󰅴",
CopilotOff = "", Copilot = "",
Folder = "󰉋", CopilotOff = "",
Keyword = "", Folder = "󰉋",
Reference = "", Keyword = "",
Snippet = "", Reference = "",
TabNine = "󰏚", Snippet = "",
Text = "", TabNine = "󰏚",
Unit = "", Text = "",
Value = "", Unit = "",
File = "", Value = "",
Module = "", File = "",
Namespace = "", Module = "",
Package = "", Namespace = "",
Class = "", Package = "",
Method = "", Class = "",
Property = "", Method = "",
Field = "", Property = "",
Constructor = "", Field = "",
Enum = "", Constructor = "",
Interface = "", Enum = "",
Function = "", Interface = "",
Variable = "", Function = "",
Constant = "", Fragment = "󰅴",
String = "", Variable = "",
Number = "", Constant = "",
Array = "", String = "",
Object = "", Number = "",
Key = "", Array = "",
Null = "", Object = "",
EnumMember = "", Key = "",
Struct = "", Null = "",
Event = "", EnumMember = "",
Operator = "", Struct = "",
TypeParameter = "", Event = "",
}, Operator = "",
git = { TypeParameter = "",
LineAdded = "", },
LineModified = "", git = {
LineRemoved = "", LineAdded = "",
FileDeleted = "", LineModified = "",
FileIgnored = "", LineRemoved = "",
FileRenamed = "", FileDeleted = "",
FileStaged = "S", FileIgnored = "",
FileUnmerged = "", FileRenamed = "",
FileUnstaged = "", FileStaged = "S",
FileUntracked = "U", FileUnmerged = "",
Diff = "", FileUnstaged = "",
Repo = "", FileUntracked = "U",
Octoface = "", Diff = "",
Branch = "", Repo = "",
Branch2 = "", Octoface = "",
Branch3 = "󰘬", Branch = "",
NoBranch = "󱓌", Branch2 = "",
}, Branch3 = "󰘬",
ui = { NoBranch = "󱓌",
ArrowCircleDown = "", },
ArrowCircleLeft = "", ui = {
ArrowCircleRight = "", ArrowCircleDown = "",
ArrowCircleUp = "", ArrowCircleLeft = "",
BoldArrowDown = "", ArrowCircleRight = "",
BoldArrowLeft = "", ArrowCircleUp = "",
BoldArrowRight = "", BoldArrowDown = "",
BoldArrowUp = "", BoldArrowLeft = "",
BoldClose = "", BoldArrowRight = "",
BoldDividerLeft = "", BoldArrowUp = "",
BoldDividerRight = "", BoldClose = "",
BoldLineLeft = "", BoldDividerLeft = "",
BookMark = "", BoldDividerRight = "",
BoxChecked = "", BoldLineLeft = "",
Bug = "", BookMark = "",
Stacks = "", BoxChecked = "",
Scopes = "", Bug = "",
Watches = "󰂥", Stacks = "",
DebugConsole = "", Scopes = "",
Calendar = "", Watches = "󰂥",
Check = "", DebugConsole = "",
ChevronRight = "", Calendar = "",
ChevronShortDown = "", Check = "",
ChevronShortLeft = "", ChevronRight = "",
ChevronShortRight = "", ChevronShortDown = "",
ChevronShortUp = "", ChevronShortLeft = "",
ChevronShortDown2 = "", ChevronShortRight = "",
ChevronShortLeft2 = "", ChevronShortUp = "",
ChevronShortRight2 = "", ChevronShortDown2 = "",
ChevronShortUp2 = "", ChevronShortLeft2 = "",
Circle = "", ChevronShortRight2 = "",
Close = "󰅖", ChevronShortUp2 = "",
CloudDownload = "", Circle = "",
Code = "", Close = "󰅖",
Comment = "", CloudDownload = "",
Dashboard = "", Code = "",
DividerLeft = "", Comment = "",
DividerRight = "", Dashboard = "",
DoubleChevronRight = "»", DividerLeft = "",
Ellipsis = "", DividerRight = "",
EmptyFolder = "󰉖", DoubleChevronRight = "»",
EmptyFolderOpen = "󰷏", Ellipsis = "",
File = "", EmptyFolder = "󰉖",
FileSymlink = "", EmptyFolderOpen = "󰷏",
Files = "", File = "",
FindFile = "󰈞", FileSymlink = "",
FindText = "󰊄", Files = "",
Fire = "", FindFile = "󰈞",
Folder = "󰉋", FindText = "󰊄",
FolderOpen = "󰝰", Fire = "",
FolderSymlink = "", Folder = "󰉋",
Forward = "", FolderOpen = "󰝰",
Gear = "", FolderSymlink = "",
History = "", Forward = "",
Lightbulb = "", Gear = "",
LineLeft = "", History = "",
LineMiddle = "", Lightbulb = "",
List = "", LineLeft = "",
Lock = "", LineMiddle = "",
NewFile = "", List = "",
Note = "", Lock = "",
Package = "", NewFile = "",
Pencil = "󰏫", Note = "",
Plus = "", Package = "",
Project = "", Pencil = "󰏫",
Search = "", Plus = "",
SignIn = "", Project = "",
SignOut = "", Search = "",
Tab = "󰌒", SignIn = "",
Table = "", SignOut = "",
Target = "󰀘", Tab = "󰌒",
Telescope = "", Table = "",
Text = "", Target = "󰀘",
Tree = "", Telescope = "",
Triangle = "󰐊", Text = "",
TriangleShortArrowDown = "", Tree = "",
TriangleShortArrowLeft = "", Triangle = "󰐊",
TriangleShortArrowRight = "", TriangleShortArrowDown = "",
TriangleShortArrowUp = "", TriangleShortArrowLeft = "",
Neovim = "", TriangleShortArrowRight = "",
Pending = "", TriangleShortArrowUp = "",
BlankCircle = "", Neovim = "",
CheckCircle = "", Pending = "",
DotCircle = "", BlankCircle = "",
Border = { "", "", "", "", "", "", "", "" }, CheckCircle = "",
ProjekFolder = "󱧶", DotCircle = "",
Bell = "󰂠", Border = { "", "", "", "", "", "", "", "" },
ft = "", ProjekFolder = "󱧶",
not_loaded = "", Bell = "󰂠",
Paint = "", ft = "",
}, not_loaded = "",
folding = { Paint = "",
vert = "", -- alternatives │ },
fold = " ", folding = {
eob = " ", -- suppress ~ at EndOfBuffer vert = "", -- alternatives │
diff = "", -- alternatives = ⣿ ░ ─ fold = " ",
msgsep = "", eob = " ", -- suppress ~ at EndOfBuffer
foldopen = "", diff = "", -- alternatives = ⣿ ░ ─
foldsep = "", msgsep = "",
foldclose = "", foldopen = "",
plusBox = "󰜄", foldsep = "",
plusSircle = "󰐙", foldclose = "",
plus = "󰐕", plusBox = "󰜄",
minusBox = "󰛲", plusSircle = "󰐙",
minusSircle = "󰍷", plus = "󰐕",
minus = "󰍴", minusBox = "󰛲",
}, minusSircle = "󰍷",
diagnostics = { minus = "󰍴",
BoldError = "", },
Error = "", diagnostics = {
BoldWarning = "", BoldError = "",
Warning = "", Error = "",
BoldInformation = "", BoldWarning = "",
Information = "", Warning = "",
BoldQuestion = "", BoldInformation = "",
Question = "", Information = "",
BoldHint = "", BoldQuestion = "",
Hint = "󰌶", Question = "",
Debug = "", BoldHint = "",
Trace = "", Hint = "󰌶",
}, Debug = "",
misc = { Trace = "",
Robot = "󰚩", },
Squirrel = "", misc = {
Tag = "", Robot = "󰚩",
Watch = "", Squirrel = "",
Smiley = "", Tag = "",
Package = "", Watch = "",
CircuitBoard = "", Smiley = "",
}, Package = "",
CircuitBoard = "",
},
} }