Переглянути джерело

chore: move utils to its own module

Mariano Z. 1 рік тому
батько
коміт
84ea098cff
4 змінених файлів з 163 додано та 1 видалено
  1. 2 1
      init.lua
  2. 159 0
      lua/utils/icons.lua
  3. 2 0
      lua/utils/init.lua
  4. 0 0
      lua/utils/map.lua

+ 2 - 1
init.lua

@@ -1,4 +1,5 @@
-require("config.utils")
+require("utils")
+
 require("config.options")
 require("config.remap")
 require("config.autocomands")

+ 159 - 0
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 = " ",
+  },
+}

+ 2 - 0
lua/utils/init.lua

@@ -0,0 +1,2 @@
+require("utils.map")
+require("utils.icons")

+ 0 - 0
lua/config/utils.lua → lua/utils/map.lua