Skip to content

Commit 56538b7

Browse files
authored
fix(icons)!: update icon codepoints (#447)
1 parent 9d3e22d commit 56538b7

File tree

8 files changed

+92
-73
lines changed

8 files changed

+92
-73
lines changed

dots.tutor

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ Back to the left window, the status line is showed at the bottom of the window.
4848
You will see different content under different conditions. It will looks like
4949
this if you switch to the right window and move cursor to the second line.
5050
-------------------------------------------------------------------------------
51-
|Normal|main| autocmd |~/.config/nvim|utf-8|LF|1%|2:1|
51+
|Normal|main| 󰅩 autocmd |~/.config/nvim|utf-8|LF|1%|2:1|
5252
-------------------------------------------------------------------------------
53-
" autocmd" indicates this line has a variable named "autocmd". So this part of
53+
"󰅩 autocmd" indicates this line has a variable named "autocmd". So this part of
5454
status line will show you the context of your cursor position. This feature
5555
is based on lsp, so it is disabled if corresponding lsp is not attach to current
5656
buffer.

init.lua

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
11
if not vim.g.vscode then
22
require("core")
3+
4+
-- Release note
5+
vim.schedule(function()
6+
vim.notify_once(
7+
[[
8+
We've released version v3.0.0!
9+
Visit https://github.com/ayamir/nvimdots/releases to see the release notes.
10+
If you have icons that can't be rendered correctly (e.g., 𑨩 and � ) or icons with incorrect size, be sure to read this!
11+
12+
To silence this message, remove it from `init.lua` at the config's root directory.
13+
14+
To check the glyphs size, make sure the following icons are very close to the crosses but there is no overlap:
15+
XXXXXXXXX
16+
]],
17+
vim.log.levels.WARN
18+
)
19+
end)
320
end

lua/core/settings.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ settings["use_ssh"] = true
99
---@type boolean
1010
settings["format_on_save"] = true
1111

12+
-- Set it to false if diagnostics virtual text is annoying for you
13+
---@type boolean
14+
settings["diagnostics_virtual_text"] = true
15+
1216
-- Set the format disabled directories here, files under these dirs won't be formatted on save.
1317
---@type string[]
1418
settings["format_disabled_dirs"] = {
@@ -90,8 +94,4 @@ settings["null_ls_deps"] = {
9094
"vint",
9195
}
9296

93-
-- Set the inline_diagnostic_virtual_text to false if they are annoying for you
94-
---@type boolean
95-
settings["inline_diagnostic_virtual_text"] = true
96-
9797
return settings

lua/modules/configs/completion/lsp.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ return function()
4040
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
4141
signs = true,
4242
underline = true,
43-
virtual_text = require("core.settings").inline_diagnostic_virtual_text,
43+
virtual_text = require("core.settings").diagnostics_virtual_text,
4444
-- set update_in_insert to false bacause it was enabled by lspsaga
4545
update_in_insert = false,
4646
})

lua/modules/configs/tool/nvim-tree.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@ return function()
6666
git = true,
6767
},
6868
padding = " ",
69-
symlink_arrow = " ",
69+
symlink_arrow = " 󰁔 ",
7070
glyphs = {
7171
default = icons.documents.Default, --
7272
symlink = icons.documents.Symlink, --
7373
bookmark = icons.ui.Bookmark,
7474
git = {
7575
unstaged = icons.git.Mod_alt,
76-
staged = icons.git.Add, --
76+
staged = icons.git.Add, --󰄬
7777
unmerged = icons.git.Unmerged,
78-
renamed = icons.git.Rename, --
79-
untracked = icons.git.Untracked, -- ""
78+
renamed = icons.git.Rename, --󰁔
79+
untracked = icons.git.Untracked, -- "󰞋"
8080
deleted = icons.git.Remove, --
8181
ignored = icons.git.Ignore, --
8282
},

lua/modules/configs/ui/alpha.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ return function()
7777
require("telescope").extensions.frecency.frecency()
7878
end,
7979
}),
80-
button("space f e", " File history", leader, nil, {
80+
button("space f e", "󰋚 File history", leader, nil, {
8181
noremap = true,
8282
silent = true,
8383
nowait = true,
@@ -93,7 +93,7 @@ return function()
9393
require("telescope").extensions.projects.projects({})
9494
end,
9595
}),
96-
button("space f f", " File find", leader, nil, {
96+
button("space f f", "󰈞 File find", leader, nil, {
9797
noremap = true,
9898
silent = true,
9999
nowait = true,
@@ -124,13 +124,13 @@ return function()
124124
local stats = require("lazy").stats()
125125
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
126126
return "  Have Fun with neovim"
127-
.. " v"
127+
.. " 󰀨 v"
128128
.. vim.version().major
129129
.. "."
130130
.. vim.version().minor
131131
.. "."
132132
.. vim.version().patch
133-
.. " "
133+
.. " 󰂖 "
134134
.. stats.count
135135
.. " plugins in "
136136
.. ms

lua/modules/configs/ui/lualine.lua

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ return function()
122122
error = icons.diagnostics.Error,
123123
warn = icons.diagnostics.Warning,
124124
info = icons.diagnostics.Information,
125+
hint = icons.diagnostics.Hint_alt,
125126
},
126127
},
127128
{ get_cwd },

lua/modules/utils/icons.lua

+59-58
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,34 @@ local icons = {}
22

33
local data = {
44
kind = {
5-
Class = "",
6-
Color = "",
7-
Constant = "",
5+
Class = "󰠱",
6+
Color = "󰏘",
7+
Constant = "󰏿",
88
Constructor = "",
99
Enum = "",
1010
EnumMember = "",
1111
Event = "",
12-
Field = "",
13-
File = "",
14-
Folder = "",
15-
Function = "",
12+
Field = "󰇽",
13+
File = "󰈙",
14+
Folder = "󰉋",
15+
Function = "󰊕",
1616
Interface = "",
17-
Keyword = "",
18-
Method = "",
17+
Keyword = "󰌋",
18+
Method = "󰆧",
1919
Module = "",
20-
Namespace = "",
20+
Namespace = "󰌗",
2121
Number = "",
22-
Operator = "",
22+
Operator = "󰆕",
2323
Package = "",
24-
Property = "",
24+
Property = "󰜢",
2525
Reference = "",
2626
Snippet = "",
2727
Struct = "",
28-
Text = "",
29-
TypeParameter = "",
30-
Unit = "",
28+
Text = "󰉿",
29+
TypeParameter = "󰅲",
3130
Undefined = "",
32-
Value = "",
31+
Unit = "",
32+
Value = "󰎠",
3333
Variable = "",
3434
-- ccls-specific icons.
3535
TypeAlias = "",
@@ -38,34 +38,34 @@ local data = {
3838
Macro = "",
3939
},
4040
type = {
41-
Array = "",
41+
Array = "󰅪",
4242
Boolean = "",
43-
Null = "",
43+
Null = "󰟢",
4444
Number = "",
45-
Object = "",
46-
String = "",
45+
Object = "󰅩",
46+
String = "󰉿",
4747
},
4848
documents = {
4949
Default = "",
5050
File = "",
5151
Files = "",
52-
FileTree = "",
52+
FileTree = "󰙅",
5353
Import = "",
5454
Symlink = "",
5555
},
5656
git = {
5757
Add = "",
5858
Branch = "",
5959
Diff = "",
60-
Git = "",
60+
Git = "󰊢",
6161
Ignore = "",
6262
Mod = "M",
6363
Mod_alt = "",
6464
Remove = "",
6565
Rename = "",
6666
Repo = "",
67-
Unmerged = "",
68-
Untracked = "",
67+
Unmerged = "󰘬",
68+
Untracked = "󰞋",
6969
Unstaged = "",
7070
Staged = "",
7171
Conflict = "",
@@ -75,55 +75,55 @@ local data = {
7575
ArrowOpen = "",
7676
BigCircle = "",
7777
BigUnfilledCircle = "",
78-
BookMark = "",
78+
BookMark = "󰃃",
7979
Bug = "",
8080
Calendar = "",
81-
Check = "",
81+
Check = "󰄳",
8282
ChevronRight = "",
8383
Circle = "",
84-
Close = "",
84+
Close = "󰅖",
8585
Close_alt = "",
8686
CloudDownload = "",
87-
Comment = "",
88-
CodeAction = "",
87+
Comment = "󰅺",
88+
CodeAction = "󰌵",
8989
Dashboard = "",
90-
Emoji = "",
90+
Emoji = "󰱫",
9191
EmptyFolder = "",
9292
EmptyFolderOpen = "",
93-
File = "",
93+
File = "󰈤",
9494
Fire = "",
9595
Folder = "",
9696
FolderOpen = "",
9797
Gear = "",
98-
History = "",
99-
Incoming = "",
98+
History = "󰄉",
99+
Incoming = "󰏷",
100100
Indicator = "",
101101
Keyboard = "",
102102
Left = "",
103103
List = "",
104104
Square = "",
105105
SymlinkFolder = "",
106-
Lock = "",
106+
Lock = "󰍁",
107107
Modified = "",
108108
Modified_alt = "",
109109
NewFile = "",
110110
Newspaper = "",
111-
Note = "",
112-
Outgoing = "",
111+
Note = "󰍨",
112+
Outgoing = "󰏻",
113113
Package = "",
114-
Pencil = "",
115-
Perf = "",
114+
Pencil = "󰏫",
115+
Perf = "󰅒",
116116
Play = "",
117117
Project = "",
118118
Right = "",
119119
RootFolderOpened = "",
120-
Search = "",
120+
Search = "󰍉",
121121
Separator = "",
122-
DoubleSeparator = "",
122+
DoubleSeparator = "󰄾",
123123
SignIn = "",
124124
SignOut = "",
125125
Sort = "",
126-
Spell = "",
126+
Spell = "󰓆",
127127
Symlink = "",
128128
Table = "",
129129
Telescope = "",
@@ -133,21 +133,21 @@ local data = {
133133
Warning = "",
134134
Information = "",
135135
Question = "",
136-
Hint = "",
136+
Hint = "󰌵",
137137
-- Holo version
138-
Error_alt = "",
139-
Warning_alt = "",
138+
Error_alt = "󰅚",
139+
Warning_alt = "󰀪",
140140
Information_alt = "",
141141
Question_alt = "",
142-
Hint_alt = "",
142+
Hint_alt = "󰌶",
143143
},
144144
misc = {
145-
Campass = "",
145+
Campass = "󰀹",
146146
Code = "",
147-
EscapeST = "",
147+
EscapeST = "",
148148
Gavel = "",
149-
Glass = "",
150-
PyEnv = "",
149+
Glass = "󰂖",
150+
PyEnv = "󰌠",
151151
Squirrel = "",
152152
Tag = "",
153153
Tree = "",
@@ -156,45 +156,46 @@ local data = {
156156
Vbar = "",
157157
Add = "+",
158158
Added = "",
159-
Ghost = "",
159+
Ghost = "󰊠",
160160
ManUp = "",
161161
Vim = "",
162162
},
163163
cmp = {
164164
Codeium = "",
165165
TabNine = "",
166166
Copilot = "",
167+
Copilot_alt = "",
167168
-- Add source-specific icons here
168169
buffer = "",
169170
cmp_tabnine = "",
170171
codeium = "",
171172
copilot = "",
172173
copilot_alt = "",
173174
latex_symbols = "",
174-
luasnip = "",
175+
luasnip = "󰃐",
175176
nvim_lsp = "",
176177
nvim_lua = "",
177178
orgmode = "",
178179
path = "",
179-
spell = "",
180+
spell = "󰓆",
180181
tmux = "",
181182
treesitter = "",
182183
undefined = "",
183184
},
184185
dap = {
185-
Breakpoint = "",
186-
BreakpointCondition = "",
186+
Breakpoint = "󰝥",
187+
BreakpointCondition = "󰟃",
187188
BreakpointRejected = "",
188189
LogPoint = "",
189190
Pause = "",
190191
Play = "",
191192
RunLast = "",
192193
StepBack = "",
193-
StepInto = "",
194-
StepOut = "",
195-
StepOver = "",
194+
StepInto = "󰆹",
195+
StepOut = "󰆸",
196+
StepOver = "󰆷",
196197
Stopped = "",
197-
Terminate = "",
198+
Terminate = "󰝤",
198199
},
199200
}
200201

0 commit comments

Comments
 (0)