From 1da8b06ac4c197938af0c0c1137fc32897f8dfb0 Mon Sep 17 00:00:00 2001 From: jc <46619361+juancwu@users.noreply.github.com> Date: Tue, 14 Jan 2025 19:00:57 -0500 Subject: [PATCH] (nvim) setup text keys if no nerd fonts for which-key --- nvim/lua/juancwu/plugins/which-key.lua | 37 +++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/nvim/lua/juancwu/plugins/which-key.lua b/nvim/lua/juancwu/plugins/which-key.lua index 6642352..eaee4da 100644 --- a/nvim/lua/juancwu/plugins/which-key.lua +++ b/nvim/lua/juancwu/plugins/which-key.lua @@ -8,7 +8,42 @@ return { local wk = require("which-key") - wk.setup() + wk.setup({ + delay = 0, + icons = { + mappings = vim.g.have_nerd_font, + keys = vim.g.have_nerd_font and {} or { + Up = ' ', + Down = ' ', + Left = ' ', + Right = ' ', + C = ' ', + M = ' ', + D = ' ', + S = ' ', + CR = ' ', + Esc = ' ', + ScrollWheelDown = ' ', + ScrollWheelUp = ' ', + NL = ' ', + BS = ' ', + Space = ' ', + Tab = ' ', + F1 = '', + F2 = '', + F3 = '', + F4 = '', + F5 = '', + F6 = '', + F7 = '', + F8 = '', + F9 = '', + F10 = '', + F11 = '', + F12 = '', + } + } + }) end, } }