From 6550ddf5ce491d17af009c397aceb25310566eaa Mon Sep 17 00:00:00 2001 From: aceforeverd Date: Fri, 7 Jul 2023 15:01:19 +0800 Subject: [PATCH] fix(ui): replace obsolete nerd fonts from ui (#357) nerdfont >= 3.0.0 dropped class name `nf-mdi-*`, replacing with new class name `nf-md-*`. The new class name exists since nerdfont 2.3.0 so user with nerdfont >= 2.3.0 installed should be fine. Refer https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.0.0 --- README.md | 4 ++-- doc/go.txt | 2 +- lua/go.lua | 2 +- lua/go/gotestsum.lua | 2 +- lua/go/package.lua | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ab223e4..6788a38 100644 --- a/README.md +++ b/README.md @@ -755,7 +755,7 @@ require('go').setup({ tag_options = 'json=omitempty', -- sets options sent to gomodifytags, i.e., json=omitempty gotests_template = "", -- sets gotests -template parameter (check gotests for details) gotests_template_dir = "", -- sets gotests -template_dir parameter (check gotests for details) - comment_placeholder = '' , -- comment_placeholder your cool placeholder e.g. ﳑ     + comment_placeholder = '' , -- comment_placeholder your cool placeholder e.g. 󰟓     icons = {breakpoint = '🧘', currentpos = '🏃'}, -- setup to `false` to disable icons setup verbose = false, -- output loginf in messages lsp_cfg = false, -- true: use non-default gopls setup specified in go/lsp.lua @@ -795,7 +795,7 @@ require('go').setup({ -- default: false show_variable_name = true, -- prefix for parameter hints - parameter_hints_prefix = " ", + parameter_hints_prefix = "󰊕 ", show_parameter_hints = true, -- prefix for all the other hints (type, chaining) other_hints_prefix = "=> ", diff --git a/doc/go.txt b/doc/go.txt index f6eb27b..0849e2d 100644 --- a/doc/go.txt +++ b/doc/go.txt @@ -409,7 +409,7 @@ You can setup go.nvim with following options: show_variable_name = true, -- prefix for parameter hints - parameter_hints_prefix = " ", + parameter_hints_prefix = "󰊕 ", show_parameter_hints = true, -- prefix for all the other hints (type, chaining) diff --git a/lua/go.lua b/lua/go.lua index 87f569e..5a2586d 100644 --- a/lua/go.lua +++ b/lua/go.lua @@ -65,7 +65,7 @@ _GO_NVIM_CFG = { show_variable_name = true, -- prefix for parameter hints - parameter_hints_prefix = ' ', + parameter_hints_prefix = '󰊕 ', show_parameter_hints = true, -- prefix for all the other hints (type, chaining) diff --git a/lua/go/gotestsum.lua b/lua/go/gotestsum.lua index a4956d3..1374c60 100644 --- a/lua/go/gotestsum.lua +++ b/lua/go/gotestsum.lua @@ -48,7 +48,7 @@ local show_panel = function() end if test_panel == nil or not test_panel:is_open() then test_panel = panel:new({ - header = '   go test  ', + header = '  󰏖 go test  ', render = function(buf) -- log(test_result) return test_result diff --git a/lua/go/package.lua b/lua/go/package.lua index 74c5650..e531364 100644 --- a/lua/go/package.lua +++ b/lua/go/package.lua @@ -130,7 +130,7 @@ local show_panel = function(result, pkg, rerender) log('create panel') if panel then local p = panel:new({ - header = '   ' .. pkg_name .. '  ', + header = '  󰏖 ' .. pkg_name .. '  ', render = function(b) log('render for ', bufnr, b) -- log(debug.traceback())