aboutsummaryrefslogtreecommitdiff
path: root/lua/config
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2023-07-25 22:50:39 +0200
committerjdhao <jdhao@hotmail.com>2023-07-25 22:53:20 +0200
commite2f348cb371e53d2d45bc2cd8f9a23d63db2d539 (patch)
treeceba37d4c77d218776115a349315b4c01fc680ed /lua/config
parentfc8175d32d0261393b184001b04109c8257609d1 (diff)
fix: missing nerdfonts
Since wezterm upgrade its support for Nerd Fonts 3.0, we should update the codepoints used for some of the Unicode Icons. Their code points are changed due to breaking changes in Nerd Fonts.
Diffstat (limited to 'lua/config')
-rw-r--r--lua/config/bufferline.lua2
-rw-r--r--lua/config/dashboard-nvim.lua10
-rw-r--r--lua/config/lsp.lua8
-rw-r--r--lua/config/statusline.lua1
4 files changed, 11 insertions, 10 deletions
diff --git a/lua/config/bufferline.lua b/lua/config/bufferline.lua
index 9089a83..6fa27ce 100644
--- a/lua/config/bufferline.lua
+++ b/lua/config/bufferline.lua
@@ -9,7 +9,7 @@ require("bufferline").setup {
icon = "▎", -- this should be omitted if indicator style is not 'icon'
style = "icon",
},
- buffer_close_icon = "",
+ buffer_close_icon = "",
modified_icon = "●",
close_icon = "",
left_trunc_marker = "",
diff --git a/lua/config/dashboard-nvim.lua b/lua/config/dashboard-nvim.lua
index 2519aec..55a268d 100644
--- a/lua/config/dashboard-nvim.lua
+++ b/lua/config/dashboard-nvim.lua
@@ -21,25 +21,25 @@ conf.header = {
conf.center = {
{
- icon = " ",
+ icon = "󰈞 ",
desc = "Find File ",
action = "Leaderf file --popup",
key = "<Leader> f f",
},
{
- icon = " ",
+ icon = "󰈢 ",
desc = "Recently opened files ",
action = "Leaderf mru --popup",
key = "<Leader> f r",
},
{
- icon = " ",
+ icon = "󰈬 ",
desc = "Project grep ",
action = "Leaderf rg --popup",
key = "<Leader> f g",
},
{
- icon = " ",
+ icon = " ",
desc = "Open Nvim config ",
action = "tabnew $MYVIMRC | tcd %:p:h",
key = "<Leader> e v",
@@ -51,7 +51,7 @@ conf.center = {
key = "e",
},
{
- icon = " ",
+ icon = "󰗼 ",
desc = "Quit Nvim ",
-- desc = "Quit Nvim ",
action = "qa",
diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua
index 728455a..765a2ef 100644
--- a/lua/config/lsp.lua
+++ b/lua/config/lsp.lua
@@ -233,10 +233,10 @@ if utils.executable("lua-language-server") then
end
-- Change diagnostic signs.
-fn.sign_define("DiagnosticSignError", { text = "✗", texthl = "DiagnosticSignError" })
-fn.sign_define("DiagnosticSignWarn", { text = "!", texthl = "DiagnosticSignWarn" })
-fn.sign_define("DiagnosticSignInformation", { text = "", texthl = "DiagnosticSignInfo" })
-fn.sign_define("DiagnosticSignHint", { text = "", texthl = "DiagnosticSignHint" })
+fn.sign_define("DiagnosticSignError", { text = '🆇', texthl = "DiagnosticSignError" })
+fn.sign_define("DiagnosticSignWarn", { text = '⚠️', texthl = "DiagnosticSignWarn" })
+fn.sign_define("DiagnosticSignInfo", { text = 'ℹ️', texthl = "DiagnosticSignInfo" })
+fn.sign_define("DiagnosticSignHint", { text = '', texthl = "DiagnosticSignHint" })
-- global config for diagnostic
diagnostic.config {
diff --git a/lua/config/statusline.lua b/lua/config/statusline.lua
index 2babb50..1a521a6 100644
--- a/lua/config/statusline.lua
+++ b/lua/config/statusline.lua
@@ -130,6 +130,7 @@ require("lualine").setup {
{
"diagnostics",
sources = { "nvim_diagnostic" },
+ symbols = {error = '🆇 ', warn = '⚠️ ', info = 'ℹ️ ', hint = ' '},
},
},
lualine_x = {