From 55e5a35dc92ad617d4aafb38041dd84e19e2e4d3 Mon Sep 17 00:00:00 2001 From: XenoPhex Date: Tue, 2 May 2023 19:36:22 -0700 Subject: [PATCH] fix(icons): match new Nerd Fonts 3.0.0 release See the following links for more information: - https://github.com/ryanoasis/nerd-fonts/issues/365 - https://github.com/ryanoasis/nerd-fonts/issues/1059#issuecomment-1404891287 --- README.md | 20 ++++++++++---------- doc/fzf-lua.txt | 20 ++++++++++---------- lua/fzf-lua/defaults.lua | 18 +++++++++--------- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index bd14c7bf..0238c3b6 100644 --- a/README.md +++ b/README.md @@ -985,31 +985,31 @@ require'fzf-lua'.setup { -- see https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#symbolKind -- see https://github.com/neovim/neovim/blob/829d92eca3d72a701adc6e6aa17ccd9fe2082479/runtime/lua/vim/lsp/protocol.lua#L117 symbol_icons = { - File = "", + File = "󰈙", Module = "", Namespace = "󰦮", Package = "", - Class = "", - Method = "", + Class = "󰆧", + Method = "󰊕", Property = "", Field = "", Constructor = "", Enum = "", Interface = "", - Function = "", - Variable = "", - Constant = "", + Function = "󰊕", + Variable = "󰀫", + Constant = "󰏿", String = "", Number = "󰎠", Boolean = "󰨙", Array = "󱡠", Object = "", - Key = "", + Key = "󰌋", Null = "󰟢", EnumMember = "", - Struct = "", + Struct = "󰆼", Event = "", - Operator = "", + Operator = "󰆕", TypeParameter = "󰗴", }, -- colorize using Treesitter '@' highlight groups ("@function", etc). @@ -1069,7 +1069,7 @@ require'fzf-lua'.setup { -- ["Error"] = { text = "", texthl = "DiagnosticError" }, -- ["Warn"] = { text = "", texthl = "DiagnosticWarn" }, -- ["Info"] = { text = "", texthl = "DiagnosticInfo" }, - -- ["Hint"] = { text = "", texthl = "DiagnosticHint" }, + -- ["Hint"] = { text = "󰌵", texthl = "DiagnosticHint" }, -- }, -- limit to specific severity, use either a string or num: -- 1 or "hint" diff --git a/doc/fzf-lua.txt b/doc/fzf-lua.txt index 97fa46d1..6c5729c2 100644 --- a/doc/fzf-lua.txt +++ b/doc/fzf-lua.txt @@ -1080,31 +1080,31 @@ open an issue and I'll be more than happy to help.** -- see https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#symbolKind -- see https://github.com/neovim/neovim/blob/829d92eca3d72a701adc6e6aa17ccd9fe2082479/runtime/lua/vim/lsp/protocol.lua#L117 symbol_icons = { - File = "", + File = "󰈙", Module = "", Namespace = "󰦮", Package = "", - Class = "", - Method = "", + Class = "󰆧", + Method = "󰊕", Property = "", Field = "", Constructor = "", Enum = "", Interface = "", - Function = "", - Variable = "", - Constant = "", + Function = "󰊕", + Variable = "󰀫", + Constant = "󰏿", String = "", Number = "󰎠", Boolean = "󰨙", Array = "󱡠", Object = "", - Key = "", + Key = "󰌋", Null = "󰟢", EnumMember = "", - Struct = "", + Struct = "󰆼", Event = "", - Operator = "", + Operator = "󰆕", TypeParameter = "󰗴", }, -- colorize using Treesitter '@' highlight groups ("@function", etc). @@ -1164,7 +1164,7 @@ open an issue and I'll be more than happy to help.** -- ["Error"] = { text = "", texthl = "DiagnosticError" }, -- ["Warn"] = { text = "", texthl = "DiagnosticWarn" }, -- ["Info"] = { text = "", texthl = "DiagnosticInfo" }, - -- ["Hint"] = { text = "", texthl = "DiagnosticHint" }, + -- ["Hint"] = { text = "󰌵", texthl = "DiagnosticHint" }, -- }, -- limit to specific severity, use either a string or num: -- 1 or "hint" diff --git a/lua/fzf-lua/defaults.lua b/lua/fzf-lua/defaults.lua index bd027f53..570b00c3 100644 --- a/lua/fzf-lua/defaults.lua +++ b/lua/fzf-lua/defaults.lua @@ -565,31 +565,31 @@ M.defaults.lsp.symbols = { git_icons = false, symbol_style = 1, symbol_icons = { - File = "", + File = "󰈙", Module = "", Namespace = "󰦮", Package = "", - Class = "", - Method = "", + Class = "󰆧", + Method = "󰊕", Property = "", Field = "", Constructor = "", Enum = "", Interface = "", - Function = "", - Variable = "", - Constant = "", + Function = "󰊕", + Variable = "󰀫", + Constant = "󰏿", String = "", Number = "󰎠", Boolean = "󰨙", Array = "󱡠", Object = "", - Key = "", + Key = "󰌋", Null = "󰟢", EnumMember = "", - Struct = "", + Struct = "󰆼", Event = "", - Operator = "", + Operator = "󰆕", TypeParameter = "󰗴", }, symbol_hl = function(s) return "@" .. s:lower() end,