From e2f348cb371e53d2d45bc2cd8f9a23d63db2d539 Mon Sep 17 00:00:00 2001 From: jdhao Date: Tue, 25 Jul 2023 22:50:39 +0200 Subject: [PATCH] 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. --- lua/config/bufferline.lua | 2 +- lua/config/dashboard-nvim.lua | 10 +++++----- lua/config/lsp.lua | 8 ++++---- lua/config/statusline.lua | 1 + 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 = " f f", }, { - icon = " ", + icon = "󰈢 ", desc = "Recently opened files ", action = "Leaderf mru --popup", key = " f r", }, { - icon = " ", + icon = "󰈬 ", desc = "Project grep ", action = "Leaderf rg --popup", key = " f g", }, { - icon = " ", + icon = " ", desc = "Open Nvim config ", action = "tabnew $MYVIMRC | tcd %:p:h", key = " 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 = {