From 84ea098cff16e23694c0b051a1ed2c27bf1f4aa5 Mon Sep 17 00:00:00 2001 From: "Mariano Z." Date: Sat, 21 Dec 2024 19:43:41 -0300 Subject: [PATCH] chore: move utils to its own module --- init.lua | 3 +- lua/utils/icons.lua | 159 ++++++++++++++++++++++++ lua/utils/init.lua | 2 + lua/{config/utils.lua => utils/map.lua} | 0 4 files changed, 163 insertions(+), 1 deletion(-) create mode 100644 lua/utils/icons.lua create mode 100644 lua/utils/init.lua rename lua/{config/utils.lua => utils/map.lua} (100%) diff --git a/init.lua b/init.lua index 1a891b9..745ddda 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,5 @@ -require("config.utils") +require("utils") + require("config.options") require("config.remap") require("config.autocomands") diff --git a/lua/utils/icons.lua b/lua/utils/icons.lua new file mode 100644 index 0000000..dd1dde9 --- /dev/null +++ b/lua/utils/icons.lua @@ -0,0 +1,159 @@ +_G.icons = { + kind = { + Array = " ", + Boolean = " ", + Class = " ", + Color = " ", + Constant = " ", + Constructor = " ", + Enum = " ", + EnumMember = " ", + Event = " ", + Field = " ", + File = " ", + Folder = "󰉋 ", + Function = " ", + Interface = " ", + Key = " ", + Keyword = " ", + Method = " ", + -- Module = " ", + 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 = " ", + Copilot = " ", + Branch = "", + }, + ui = { + Message = "󰍡 ", + ArrowCircleDown = "", + ArrowCircleLeft = "", + ArrowCircleRight = "", + ArrowCircleUp = "", + BoldArrowDown = "", + BoldArrowLeft = "", + BoldArrowRight = "", + BoldArrowUp = "", + BoldClose = "", + BoldDividerLeft = "", + BoldDividerRight = "", + BoldLineLeft = "▎", + BoldLineMiddle = "┃", + BoldLineDashedMiddle = "┋", + BookMark = "", + BoxChecked = " ", + Bug = " ", + Stacks = "", + Scopes = "", + Watches = "󰂥", + DebugConsole = " ", + Calendar = " ", + Check = "", + ChevronRight = "", + ChevronShortDown = "", + ChevronShortLeft = "", + ChevronShortRight = "", + ChevronShortUp = "", + 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 = "", + }, + diagnostics = { + BoldError = "", + Error = "", + BoldWarning = "", + Warning = "", + BoldInformation = "", + Information = "", + BoldQuestion = "", + Question = "", + BoldHint = "", + Hint = "󰌶", + Debug = "", + Trace = "✎", + }, + misc = { + Robot = "󰚩 ", + Squirrel = " ", + Tag = " ", + Watch = "", + Smiley = " ", + Package = " ", + CircuitBoard = " ", + }, +} diff --git a/lua/utils/init.lua b/lua/utils/init.lua new file mode 100644 index 0000000..5e03afa --- /dev/null +++ b/lua/utils/init.lua @@ -0,0 +1,2 @@ +require("utils.map") +require("utils.icons") diff --git a/lua/config/utils.lua b/lua/utils/map.lua similarity index 100% rename from lua/config/utils.lua rename to lua/utils/map.lua