From 3987cb202b41baf5d3503e647068712051aa8b25 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 3 May 2023 11:18:09 +0530 Subject: [PATCH] nvim: lsp: Update completion kind symbols This broke due to an update with the nerd-fonts package. See related https://www.reddit.com/r/archlinux/comments/1358gvh/switch_from_ttfnerdfontssymbols2048emmono_broke/ https://github.com/ryanoasis/nerd-fonts/issues/1190 Stole one or two icons from https://github.com/onsails/lspkind.nvim/pull/64 and the rest fixed by nerdfix. https://github.com/loichyan/nerdfix --- nvim/.config/nvim/lua/lsp.lua | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/nvim/.config/nvim/lua/lsp.lua b/nvim/.config/nvim/lua/lsp.lua index 3a6b280..94caf58 100644 --- a/nvim/.config/nvim/lua/lsp.lua +++ b/nvim/.config/nvim/lua/lsp.lua @@ -26,30 +26,30 @@ end _G.PeekDefinition = peek_definition protocol.CompletionItemKind = { - ' Text' ; - ' Method' ; - ' Function' ; - '全Constructor' ; + '󰉿 Text' ; + '󰡱 Method' ; + '󰊕 Function' ; + ' Constructor' ; ' Field' ; ' Variable' ; ' Class' ; ' Interface' ; - ' Module' ; + '󰏗 Module' ; ' Property' ; ' Unit' ; - ' Value' ; + '󰮸 Value' ; ' Enum' ; - ' Keyword' ; - ' Snippet' ; - ' Color' ; - ' File' ; - ' Reference' ; + '󰌋 Keyword' ; + '󰷈 Snippet' ; + '󰌁 Color' ; + '󰈙 File' ; + '󰀾 Reference' ; ' Folder' ; - ' EnumMember' ; + '󰀬 EnumMember' ; ' Constant' ; ' Struct' ; - ' Event' ; - ' Operator' ; + '󰀾 Event' ; + '󰆕 Operator' ; ' TypeParameter'; }