mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 10:33:49 -03:00
177 lines
3.8 KiB
Lua
177 lines
3.8 KiB
Lua
_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 = " ",
|
|
},
|
|
}
|