diff --git a/lua/pcode/plugins/lang/java.lua b/lua/pcode/plugins/lang/java.lua index 84642e0..9eea3b5 100644 --- a/lua/pcode/plugins/lang/java.lua +++ b/lua/pcode/plugins/lang/java.lua @@ -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, diff --git a/lua/pcode/user/icons.lua b/lua/pcode/user/icons.lua index d7f7076..50e7964 100644 --- a/lua/pcode/user/icons.lua +++ b/lua/pcode/user/icons.lua @@ -1,194 +1,196 @@ return { - kind = { - Boolean = "󰨙", - Color = "", - Codeium = "󰘦", - Control = "", - Collapsed = " ", - Copilot = "", - CopilotOff = "", - Folder = "󰉋", - Keyword = "", - Reference = "", - Snippet = "", - TabNine = "󰏚", - Text = "", - Unit = "", - Value = "", - File = "", - Module = "", - Namespace = "", - Package = "", - Class = "", - Method = "", - Property = "", - Field = "", - Constructor = "", - Enum = "", - Interface = "", - Function = "", - Variable = "", - Constant = "", - String = "", - Number = "", - Array = "", - Object = "", - Key = "", - Null = "", - EnumMember = "", - Struct = "", - Event = "", - Operator = "", - TypeParameter = "", - }, - git = { - LineAdded = "", - LineModified = "", - LineRemoved = "", - FileDeleted = "", - FileIgnored = "", - FileRenamed = "", - FileStaged = "S", - FileUnmerged = "", - FileUnstaged = "", - FileUntracked = "U", - Diff = "", - Repo = "", - Octoface = "", - Branch = "", - Branch2 = "", - Branch3 = "󰘬", - NoBranch = "󱓌", - }, - 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 = "", - ChevronShortDown2 = " ", - ChevronShortLeft2 = "", - ChevronShortRight2 = "", - ChevronShortUp2 = "", - Circle = " ", - Close = "󰅖", - CloudDownload = "", - Code = "", - Comment = "", - Dashboard = "", - DividerLeft = "", - DividerRight = "", - DoubleChevronRight = "»", - Ellipsis = "", - EmptyFolder = "󰉖", - EmptyFolderOpen = "󰷏", - File = "", - FileSymlink = "", - Files = "", - FindFile = "󰈞", - FindText = "󰊄", - Fire = "", - Folder = "󰉋", - FolderOpen = "󰝰", - FolderSymlink = "", - Forward = "", - Gear = "", - History = "", - Lightbulb = "", - LineLeft = "▏", - LineMiddle = "│", - List = "", - Lock = "", - NewFile = "", - Note = "", - Package = "", - Pencil = "󰏫", - Plus = "", - Project = "", - Search = "", - SignIn = "", - SignOut = "", - Tab = "󰌒", - Table = "", - Target = "󰀘", - Telescope = "", - Text = "", - Tree = "", - Triangle = "󰐊", - TriangleShortArrowDown = "", - TriangleShortArrowLeft = "", - TriangleShortArrowRight = "", - TriangleShortArrowUp = "", - Neovim = "", - Pending = " ", - BlankCircle = " ", - CheckCircle = " ", - DotCircle = " ", - Border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" }, - ProjekFolder = "󱧶", - Bell = "󰂠", - ft = "", - not_loaded = "", - Paint = "", - }, - folding = { - vert = "▕", -- alternatives │ - fold = " ", - eob = " ", -- suppress ~ at EndOfBuffer - diff = "╱", -- alternatives = ⣿ ░ ─ - msgsep = "‾", - foldopen = "▾", - foldsep = "│", - foldclose = "▸", - plusBox = "󰜄", - plusSircle = "󰐙", - plus = "󰐕", - minusBox = "󰛲", - minusSircle = "󰍷", - minus = "󰍴", - }, - diagnostics = { - BoldError = "", - Error = "", - BoldWarning = "", - Warning = "", - BoldInformation = "", - Information = "", - BoldQuestion = "", - Question = "", - BoldHint = "", - Hint = "󰌶", - Debug = "", - Trace = "✎", - }, - misc = { - Robot = "󰚩", - Squirrel = "", - Tag = "", - Watch = "", - Smiley = "", - Package = "", - CircuitBoard = "", - }, + kind = { + Boolean = "󰨙", + Color = "", + Codeium = "󰘦", + Control = "", + Collapsed = " ", + Component = "󰅴", + Copilot = "", + CopilotOff = "", + Folder = "󰉋", + Keyword = "", + Reference = "", + Snippet = "", + TabNine = "󰏚", + Text = "", + Unit = "", + Value = "", + File = "", + Module = "", + Namespace = "", + Package = "", + Class = "", + Method = "", + Property = "", + Field = "", + Constructor = "", + Enum = "", + Interface = "", + Function = "", + Fragment = "󰅴", + Variable = "", + Constant = "", + String = "", + Number = "", + Array = "", + Object = "", + Key = "", + Null = "", + EnumMember = "", + Struct = "", + Event = "", + Operator = "", + TypeParameter = "", + }, + git = { + LineAdded = "", + LineModified = "", + LineRemoved = "", + FileDeleted = "", + FileIgnored = "", + FileRenamed = "", + FileStaged = "S", + FileUnmerged = "", + FileUnstaged = "", + FileUntracked = "U", + Diff = "", + Repo = "", + Octoface = "", + Branch = "", + Branch2 = "", + Branch3 = "󰘬", + NoBranch = "󱓌", + }, + 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 = "", + ChevronShortDown2 = " ", + ChevronShortLeft2 = "", + ChevronShortRight2 = "", + ChevronShortUp2 = "", + Circle = " ", + Close = "󰅖", + CloudDownload = "", + Code = "", + Comment = "", + Dashboard = "", + DividerLeft = "", + DividerRight = "", + DoubleChevronRight = "»", + Ellipsis = "", + EmptyFolder = "󰉖", + EmptyFolderOpen = "󰷏", + File = "", + FileSymlink = "", + Files = "", + FindFile = "󰈞", + FindText = "󰊄", + Fire = "", + Folder = "󰉋", + FolderOpen = "󰝰", + FolderSymlink = "", + Forward = "", + Gear = "", + History = "", + Lightbulb = "", + LineLeft = "▏", + LineMiddle = "│", + List = "", + Lock = "", + NewFile = "", + Note = "", + Package = "", + Pencil = "󰏫", + Plus = "", + Project = "", + Search = "", + SignIn = "", + SignOut = "", + Tab = "󰌒", + Table = "", + Target = "󰀘", + Telescope = "", + Text = "", + Tree = "", + Triangle = "󰐊", + TriangleShortArrowDown = "", + TriangleShortArrowLeft = "", + TriangleShortArrowRight = "", + TriangleShortArrowUp = "", + Neovim = "", + Pending = " ", + BlankCircle = " ", + CheckCircle = " ", + DotCircle = " ", + Border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" }, + ProjekFolder = "󱧶", + Bell = "󰂠", + ft = "", + not_loaded = "", + Paint = "", + }, + folding = { + vert = "▕", -- alternatives │ + fold = " ", + eob = " ", -- suppress ~ at EndOfBuffer + diff = "╱", -- alternatives = ⣿ ░ ─ + msgsep = "‾", + foldopen = "▾", + foldsep = "│", + foldclose = "▸", + plusBox = "󰜄", + plusSircle = "󰐙", + plus = "󰐕", + minusBox = "󰛲", + minusSircle = "󰍷", + minus = "󰍴", + }, + diagnostics = { + BoldError = "", + Error = "", + BoldWarning = "", + Warning = "", + BoldInformation = "", + Information = "", + BoldQuestion = "", + Question = "", + BoldHint = "", + Hint = "󰌶", + Debug = "", + Trace = "✎", + }, + misc = { + Robot = "󰚩", + Squirrel = "", + Tag = "", + Watch = "", + Smiley = "", + Package = "", + CircuitBoard = "", + }, }