mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 18:43:50 -03:00
chore: rename utils to globals
This commit is contained in:
parent
72f903d231
commit
06489e1075
5 changed files with 3 additions and 3 deletions
177
lua/globals/map.lua
Normal file
177
lua/globals/map.lua
Normal file
|
@ -0,0 +1,177 @@
|
|||
_G.map = function(mode, keys, func, opts)
|
||||
opts = opts or {}
|
||||
opts.desc = opts.desc or nil
|
||||
vim.keymap.set(mode, keys, func, opts)
|
||||
end
|
||||
|
||||
_G.nmap = function(keys, func, opts)
|
||||
_G.map("n", keys, func, opts)
|
||||
end
|
||||
|
||||
_G.imap = function(keys, func, opts)
|
||||
_G.map("i", keys, func, opts)
|
||||
end
|
||||
|
||||
_G.vmap = function(keys, func, opts)
|
||||
_G.map("v", keys, func, opts)
|
||||
end
|
||||
|
||||
_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 = " ",
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue