diff --git a/lua/navigator.lua b/lua/navigator.lua index c6ba447..2648be8 100644 --- a/lua/navigator.lua +++ b/lua/navigator.lua @@ -162,7 +162,7 @@ _NgConfigValues = { icons = { icons = true, -- set to false to use system default ( if you using a terminal does not have nerd/icon) -- Code action - code_action_icon = '🏏', -- "ο ΄", + code_action_icon = '🏏', -- code lens code_lens_action_icon = 'πŸ‘“', -- Diagnostics @@ -194,11 +194,11 @@ _NgConfigValues = { match_kinds = { var = 'ξž› ', -- "πŸ‘Ή", -- Vampaire method = 'Ζ’ ', -- "πŸ”", -- mac - ['function'] = 'ο‚š ', -- "🀣", -- Fun + ['function'] = 'σ°‘± ', -- "🀣", -- Fun parameter = 'ο‹… ', -- Pi associated = '🀝', namespace = 'πŸš€', - type = 'ο ‹ ', + type = 'σ°‰Ώ', field = '🏈', module = 'πŸ“¦', flag = '🎏', diff --git a/lua/navigator/lspclient/lspkind.lua b/lua/navigator/lspclient/lspkind.lua index b20dbba..1c85943 100644 --- a/lua/navigator/lspclient/lspkind.lua +++ b/lua/navigator/lspclient/lspkind.lua @@ -5,13 +5,13 @@ local kind_symbols = { Constructor = '', Field = 'σ° ΄', Variable = 'ξž›', - Class = 'ο­„', - Interface = 'ο¨ ', + Class = 'σ° ±', + Interface = 'ξ­‘', Module = 'σ°•³', Property = '', - Unit = 'ο₯¬', + Unit = 'ο‘΅', Value = 'σ°°ͺ', - Enum = 'δΊ†', + Enum = '', Keyword = '', Snippet = 'ξ­¦', Color = '', diff --git a/lua/navigator/render.lua b/lua/navigator/render.lua index 414962f..f67d25a 100644 --- a/lua/navigator/render.lua +++ b/lua/navigator/render.lua @@ -96,7 +96,7 @@ function M.prepare_for_render(items, opts) if trim and opts.width > 50 and #dfn > opts.width - 20 then local fn1 = string.sub(dfn, 1, opts.width - 50) local fn2 = string.sub(dfn, #dfn - 10, #dfn) - display_items[last_summary_idx].display_filename = fn1 .. 'ο›—' .. fn2 + display_items[last_summary_idx].display_filename = fn1 .. 'σ°‡˜' .. fn2 space = ' ' -- log("trim", fn1, fn2) end @@ -119,7 +119,8 @@ function M.prepare_for_render(items, opts) lspapi_display = lspapi item = clone(items[i]) - space, trim = get_pads(opts.width, icon .. ' ' .. item.display_filename, lspapi_display .. ' 12 of 34') + space, trim = + get_pads(opts.width, icon .. ' ' .. item.display_filename, lspapi_display .. ' 12 of 34') if trim and opts.width > 52 and #item.display_filename > opts.width - 20 then item.display_filename = string.sub(item.display_filename, 1, opts.width - 52) .. 'σ°‡˜' @@ -161,7 +162,7 @@ function M.prepare_for_render(items, opts) item.text = item.text:gsub('%s*[%[%(%{]*%s*$', '') if item.call_by ~= nil and item.call_by ~= '' then - ts_report = ts_report .. 'σ°‘±' .. item.call_by + ts_report = ts_report .. _NgConfigValues.icons.match_kinds['function'] .. item.call_by end if #ts_report > 1 then space, trim = get_pads(win_width, item.text, ts_report) diff --git a/playground/README.md b/playground/README.md index 5f73db5..0000d3a 100644 --- a/playground/README.md +++ b/playground/README.md @@ -13,7 +13,7 @@ most used plugins for programmer. - aurora (colorscheme used in the screenshot) There are three folders `js`, `go`, `py`. Those folders have some basic source code you can play with. -The init will install the plugins in ``/tmp/nvim`` folder. It will not affect your current setup. +The init will install the plugins in `/tmp/nvim` folder. It will not affect your current setup. ## Install LSP diff --git a/tests/minimal.vim b/tests/minimal.vim index 870f14f..27d3f63 100644 --- a/tests/minimal.vim +++ b/tests/minimal.vim @@ -40,7 +40,7 @@ require'lspconfig'.gopls.setup{} require'navigator'.setup({ debug = false, -- log output, set to true and log path: ~/.local/share/nvim/gh.log - icons={code_action_icon = "ο ΄ "}, + icons={code_action_icon = ""}, width = 0.75, -- max width ratio (number of cols for the floating window) / (window width) height = 0.3, -- max list window height, 0.3 by default