Skip to content

Commit c28f62b

Browse files
EmilOhlssonldelossa
authored andcommitted
Add simple icons
Sometimes you don't have fonts that have a wide variety of specialized icons. This commit adds a simple icon set
1 parent f8b778b commit c28f62b

File tree

2 files changed

+74
-3
lines changed

2 files changed

+74
-3
lines changed

doc/litee.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ lib/icons *litee-lib-ic
185185
The `icons` library defines and exports icon sets which plugin authors may use
186186
for a consistent experience.
187187

188-
Currently `codicons` and `nerd` and "default" icons are exported.
188+
Currently `codicons`, `simple`, `nerd` and `default` icons are exported.
189189

190-
The "default" icon set only supplies the stock UTF-8 icons necessary to display
190+
The `default` icon set only supplies the stock UTF-8 icons necessary to display
191191
litee's UI such as indent guides and tree symbols.
192192

193193
Users of this library can override the exported icon libraries during runtime to

lua/litee/lib/icons/init.lua

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
local M = {}
22

3-
-- alot of these are yoinked from:
3+
-- a lot of these are yoinked from:
44
-- https://github.com/onsails/lspkind-nvim/blob/master/lua/lspkind/init.lua
55
M.nerd = {
66
Account = '',
@@ -212,6 +212,77 @@ M.default = {
212212
Variable = "V",
213213
}
214214

215+
M.simple = {
216+
Account = "A",
217+
Array = "\\[\\]",
218+
Bookmark = "BM",
219+
Boolean = "bool",
220+
Calendar = 'cal',
221+
Check = 'x',
222+
CheckAll = 'xx',
223+
Circle = 'o',
224+
CircleFilled = 'O',
225+
CirclePause = 'P',
226+
CircleSlash = 'ø',
227+
CircleStop = 'stop',
228+
Class = "class",
229+
Collapsed = ">",
230+
Color = "color",
231+
Comment = 'c',
232+
CommentExclaim = 'c!',
233+
Constant = "c",
234+
Constructor = "C",
235+
DiffAdded = '+',
236+
Enum = "Ε",
237+
EnumMember = "Ε",
238+
Event = "e",
239+
Expanded = "v",
240+
Field = "f",
241+
File = "F",
242+
Folder = "D",
243+
Function = "fn",
244+
GitBranch = 'br',
245+
GitCommit = 'ci',
246+
GitCompare = 'cmp',
247+
GitIssue = 'I',
248+
GitMerge = 'M',
249+
GitPullRequest = 'PR',
250+
GitRepo = 'R',
251+
History = 'H',
252+
IndentGuide = " ",
253+
Info = 'i',
254+
Interface = "I",
255+
Key = "k",
256+
Keyword = "kw",
257+
Method = "m",
258+
Module = "M",
259+
MultiComment = '#',
260+
Namespace = "NS",
261+
Notebook = "NB",
262+
Notification = 'N',
263+
Null = "null",
264+
Number = "#",
265+
Object = "{}",
266+
Operator = "op",
267+
Package = "{}",
268+
Pass = 'y',
269+
PassFilled = 'yy',
270+
Pencil = 'e',
271+
Property = "P",
272+
Reference = "&",
273+
RequestChanges = '-',
274+
Separator = ".",
275+
Space = " ",
276+
String = "\"",
277+
Struct = "S",
278+
Sync = 's',
279+
Text = "\"",
280+
TypeParameter = "T",
281+
Unit = "U",
282+
Value = "v",
283+
Variable = "V",
284+
}
285+
215286
M.icon_hls = {
216287
Array = "LTConstant",
217288
Boolean = "LTBoolean",

0 commit comments

Comments
 (0)