From 4ba2c9557ea03243b079cf6c44572e1a6f011abc Mon Sep 17 00:00:00 2001 From: ray-x Date: Tue, 25 Jul 2023 22:22:02 +1000 Subject: [PATCH] updates for nerdfonts 3.0 --- lua/navigator.lua | 10 +++---- lua/navigator/lspclient/lspkind.lua | 44 ++++++++++++++--------------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/lua/navigator.lua b/lua/navigator.lua index e48be9d..c7639b1 100644 --- a/lua/navigator.lua +++ b/lua/navigator.lua @@ -174,7 +174,7 @@ _NgConfigValues = { value_changed = '📝', value_definition = '🐶🍡', -- it is easier to see than 🦕 side_panel = { - section_separator = '', + section_separator = '󰇜', line_num_left = '', line_num_right = '', inner_node = '├○', @@ -223,7 +223,7 @@ local extend_config = function(opts) if _NgConfigValues[key] == nil then warn( string.format( - '[] Deprecated? Key %s is not in default setup, it could be incorrect to set to %s', + '[󰎐] Deprecated? Key %s is not in default setup, it could be incorrect to set to %s', key, vim.inspect(value) ) @@ -235,7 +235,7 @@ local extend_config = function(opts) if type(value) ~= 'table' then info( string.format( - '[] Reset type: Key %s setup value %s type %s , from %s', + '[󰎐] Reset type: Key %s setup value %s type %s , from %s', key, vim.inspect(value), type(value), @@ -263,7 +263,7 @@ local extend_config = function(opts) if key == 'lsp' then local lsp = require('navigator.lspclient.servers') if not vim.tbl_contains(lsp or {}, k) and k ~= 'efm' and k ~= 'null-ls' then - info(string.format('[] extend LSP support for %s %s ', key, k)) + info(string.format('[󰎐] extend LSP support for %s %s ', key, k)) end elseif key == 'signature_help_cfg' then _NgConfigValues[key][k] = v @@ -271,7 +271,7 @@ local extend_config = function(opts) info('keymap override' .. vim.inspect(v)) -- skip key check and allow mapping to handle that else - warn(string.format('[] Key %s %s not valid', key, k)) + warn(string.format('[󰎐] Key %s %s not valid', key, k)) end -- return end diff --git a/lua/navigator/lspclient/lspkind.lua b/lua/navigator/lspclient/lspkind.lua index 2484b91..b20dbba 100644 --- a/lua/navigator/lspclient/lspkind.lua +++ b/lua/navigator/lspclient/lspkind.lua @@ -1,19 +1,19 @@ local kind_symbols = { - Text = '', + Text = '', Method = 'ƒ', Function = '', Constructor = '', - Field = 'ﴲ', + Field = '󰠴', Variable = '', Class = 'פּ', Interface = '蘒', - Module = '', + Module = '󰕳', Property = '', Unit = '塞', - Value = '', + Value = '󰰪', Enum = '了', - Keyword = '', - Snippet = '', + Keyword = '', + Snippet = '', Color = '', File = '', Reference = '', @@ -21,28 +21,28 @@ local kind_symbols = { EnumMember = '', Constant = '', Struct = ' ', - Event = 'ﳅ', - Operator = '', + Event = '', + Operator = '', TypeParameter = ' ', Default = '', } local CompletionItemKind = { - ' ', + '', '𝔉 ', 'ⓕ ', ' ', - 'ﴲ ', + '', ' ', ' ', - 'ﰮ ', - ' ', + '', + '', ' ', ' ', - ' ', + '', '𝕰 ', - ' ', - '﬌ ', + '', + '󰘍', ' ', ' ', ' ', @@ -50,7 +50,7 @@ local CompletionItemKind = { ' ', ' ', ' ', - 'ﳅ ', + '󰯹', ' ', ' ', ' ', @@ -88,7 +88,7 @@ local CompletionItemKind = { local SymbolItemKind = { ' ', - ' ', + ' ', ' ', ' ', 'פּ ', @@ -102,16 +102,16 @@ local SymbolItemKind = { ' ', ' ', ' ', - ' ', + '󰠴', ' ', ' ', ' ', ' ', - 'ﳠ ', - ' ', + '󰇥', + '󰎬', ' ', - 'ﳅ ', - ' ', + '󰯹', + '', ' ', ' ', }