Skip to content

Commit

Permalink
fix(icons): update icon codepoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Jint-lzxy committed May 4, 2023
1 parent f9cb8fe commit c5da797
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 68 deletions.
4 changes: 2 additions & 2 deletions dots.tutor
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ Back to the left window, the status line is showed at the bottom of the window.
You will see different content under different conditions. It will looks like
this if you switch to the right window and move cursor to the second line.
-------------------------------------------------------------------------------
|Normal|main| autocmd |~/.config/nvim|utf-8|LF|1%|2:1|
|Normal|main| 󰅩 autocmd |~/.config/nvim|utf-8|LF|1%|2:1|
-------------------------------------------------------------------------------
" autocmd" indicates this line has a variable named "autocmd". So this part of
"󰅩 autocmd" indicates this line has a variable named "autocmd". So this part of
status line will show you the context of your cursor position. This feature
is based on lsp, so it is disabled if corresponding lsp is not attach to current
buffer.
Expand Down
8 changes: 4 additions & 4 deletions lua/modules/configs/tool/nvim-tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@ return function()
git = true,
},
padding = " ",
symlink_arrow = " ",
symlink_arrow = " 󰁔 ",
glyphs = {
default = icons.documents.Default, --
symlink = icons.documents.Symlink, --
bookmark = icons.ui.Bookmark,
git = {
unstaged = icons.git.Mod_alt,
staged = icons.git.Add, --
staged = icons.git.Add, --󰄬
unmerged = icons.git.Unmerged,
renamed = icons.git.Rename, --
untracked = icons.git.Untracked, -- ""
renamed = icons.git.Rename, --󰁔
untracked = icons.git.Untracked, -- "󰞋"
deleted = icons.git.Remove, --
ignored = icons.git.Ignore, --
},
Expand Down
8 changes: 4 additions & 4 deletions lua/modules/configs/ui/alpha.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ return function()
require("telescope").extensions.frecency.frecency()
end,
}),
button("space f e", " File history", leader, nil, {
button("space f e", "󰋚 File history", leader, nil, {
noremap = true,
silent = true,
nowait = true,
Expand All @@ -93,7 +93,7 @@ return function()
require("telescope").extensions.projects.projects({})
end,
}),
button("space f f", " File find", leader, nil, {
button("space f f", "󰈞 File find", leader, nil, {
noremap = true,
silent = true,
nowait = true,
Expand Down Expand Up @@ -124,13 +124,13 @@ return function()
local stats = require("lazy").stats()
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
return "  Have Fun with neovim"
.. " v"
.. " 󰀨 v"
.. vim.version().major
.. "."
.. vim.version().minor
.. "."
.. vim.version().patch
.. " "
.. " 󰂖 "
.. stats.count
.. " plugins in "
.. ms
Expand Down
117 changes: 59 additions & 58 deletions lua/modules/utils/icons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@ local icons = {}

local data = {
kind = {
Class = "",
Color = "",
Constant = "",
Class = "󰠱",
Color = "󰏘",
Constant = "󰏿",
Constructor = "",
Enum = "",
EnumMember = "",
Event = "",
Field = "",
File = "",
Folder = "",
Function = "",
Field = "󰇽",
File = "󰈙",
Folder = "󰉋",
Function = "󰊕",
Interface = "",
Keyword = "",
Method = "",
Keyword = "󰌋",
Method = "󰆧",
Module = "",
Namespace = "",
Namespace = "󰌗",
Number = "",
Operator = "",
Operator = "󰆕",
Package = "",
Property = "",
Property = "󰜢",
Reference = "",
Snippet = "",
Struct = "",
Text = "",
TypeParameter = "",
Unit = "",
Text = "󰉿",
TypeParameter = "󰅲",
Undefined = "",
Value = "",
Unit = "",
Value = "󰎠",
Variable = "",
-- ccls-specific icons.
TypeAlias = "",
Expand All @@ -38,34 +38,34 @@ local data = {
Macro = "",
},
type = {
Array = "",
Array = "󰅪",
Boolean = "",
Null = "",
Null = "󰟢",
Number = "",
Object = "",
String = "",
Object = "󰅩",
String = "󰉿",
},
documents = {
Default = "",
File = "",
Files = "",
FileTree = "",
FileTree = "󰙅",
Import = "",
Symlink = "",
},
git = {
Add = "",
Branch = "",
Diff = "",
Git = "",
Git = "󰊢",
Ignore = "",
Mod = "M",
Mod_alt = "",
Remove = "",
Rename = "",
Repo = "",
Unmerged = "",
Untracked = "",
Unmerged = "󰘬",
Untracked = "󰞋",
Unstaged = "",
Staged = "",
Conflict = "",
Expand All @@ -75,55 +75,55 @@ local data = {
ArrowOpen = "",
BigCircle = "",
BigUnfilledCircle = "",
BookMark = "",
BookMark = "󰃃",
Bug = "",
Calendar = "",
Check = "",
Check = "󰄳",
ChevronRight = "",
Circle = "",
Close = "",
Close = "󰅖",
Close_alt = "",
CloudDownload = "",
Comment = "",
CodeAction = "",
Comment = "󰅺",
CodeAction = "󰌵",
Dashboard = "",
Emoji = "",
Emoji = "󰱫",
EmptyFolder = "",
EmptyFolderOpen = "",
File = "",
File = "󰈤",
Fire = "",
Folder = "",
FolderOpen = "",
Gear = "",
History = "",
Incoming = "",
History = "󰄉",
Incoming = "󰏷",
Indicator = "",
Keyboard = "",
Left = "",
List = "",
Square = "",
SymlinkFolder = "",
Lock = "",
Lock = "󰍁",
Modified = "",
Modified_alt = "",
NewFile = "",
Newspaper = "",
Note = "",
Outgoing = "",
Note = "󰍨",
Outgoing = "󰏻",
Package = "",
Pencil = "",
Perf = "",
Pencil = "󰏫",
Perf = "󰅒",
Play = "",
Project = "",
Right = "",
RootFolderOpened = "",
Search = "",
Search = "󰍉",
Separator = "",
DoubleSeparator = "",
DoubleSeparator = "󰄾",
SignIn = "",
SignOut = "",
Sort = "",
Spell = "",
Spell = "󰓆",
Symlink = "",
Table = "",
Telescope = "",
Expand All @@ -133,21 +133,21 @@ local data = {
Warning = "",
Information = "",
Question = "",
Hint = "",
Hint = "󰌵",
-- Holo version
Error_alt = "",
Warning_alt = "",
Error_alt = "󰅚",
Warning_alt = "󰀪",
Information_alt = "",
Question_alt = "",
Hint_alt = "",
Hint_alt = "󰌶",
},
misc = {
Campass = "",
Campass = "󰀹",
Code = "",
EscapeST = "",
EscapeST = "",
Gavel = "",
Glass = "",
PyEnv = "",
Glass = "󰂖",
PyEnv = "󰌠",
Squirrel = "",
Tag = "",
Tree = "",
Expand All @@ -156,45 +156,46 @@ local data = {
Vbar = "",
Add = "+",
Added = "",
Ghost = "",
Ghost = "󰊠",
ManUp = "",
Vim = "",
},
cmp = {
Codeium = "",
TabNine = "",
Copilot = "",
Copilot_alt = "",
-- Add source-specific icons here
buffer = "",
cmp_tabnine = "",
codeium = "",
copilot = "",
copilot_alt = "",
latex_symbols = "",
luasnip = "",
luasnip = "󰃐",
nvim_lsp = "",
nvim_lua = "",
orgmode = "",
path = "",
spell = "",
spell = "󰓆",
tmux = "",
treesitter = "",
undefined = "",
},
dap = {
Breakpoint = "",
BreakpointCondition = "",
Breakpoint = "󰝥",
BreakpointCondition = "󰟃",
BreakpointRejected = "",
LogPoint = "",
Pause = "",
Play = "",
RunLast = "",
StepBack = "",
StepInto = "",
StepOut = "",
StepOver = "",
StepInto = "󰆹",
StepOut = "󰆸",
StepOver = "󰆷",
Stopped = "",
Terminate = "",
Terminate = "󰝤",
},
}

Expand Down

0 comments on commit c5da797

Please sign in to comment.