Skip to content

Commit

Permalink
fix(icons)!: update icon codepoints (ayamir#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jint-lzxy authored and singlemancombat committed May 8, 2023
1 parent 652bcdc commit a50368a
Show file tree
Hide file tree
Showing 7 changed files with 314 additions and 303 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
19 changes: 18 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
if not vim.g.vscode then
require("core")
require("core")

-- Release note
vim.schedule(function()
vim.notify_once(
[[
We've released version v3.0.0!
Visit https://github.com/ayamir/nvimdots/releases to see the release notes.
If you have icons that can't be rendered correctly (e.g., 𑨩 and � ) or icons with incorrect size, be sure to read this!
To silence this message, remove it from `init.lua` at the config's root directory.
To check the glyphs size, make sure the following icons are very close to the crosses but there is no overlap:
XXXXXXXXX
]],
vim.log.levels.WARN
)
end)
end
8 changes: 4 additions & 4 deletions lua/core/settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ settings["use_ssh"] = true
---@type boolean
settings["format_on_save"] = true

-- Set it to false if diagnostics virtual text is annoying for you
---@type boolean
settings["diagnostics_virtual_text"] = true

-- Set the format disabled directories here, files under these dirs won't be formatted on save.
---@type string[]
settings["format_disabled_dirs"] = {
Expand Down Expand Up @@ -98,8 +102,4 @@ settings["null_ls_deps"] = {
-- "markdownlint",
}

-- Set the inline_diagnostic_virtual_text to false if they are annoying for you
---@type boolean
settings["inline_diagnostic_virtual_text"] = true

return settings
2 changes: 1 addition & 1 deletion lua/modules/configs/completion/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ return function()
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
signs = true,
underline = true,
virtual_text = require("core.settings").inline_diagnostic_virtual_text,
virtual_text = require("core.settings").diagnostics_virtual_text,
-- set update_in_insert to false bacause it was enabled by lspsaga
update_in_insert = false,
})
Expand Down
Loading

0 comments on commit a50368a

Please sign in to comment.