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