From dc2f70edc343c28dd9bd063485cd22d146e2ea38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Thu, 18 Jul 2024 13:45:01 +0200 Subject: [PATCH] docs: consistent nerdfonts spacing Nerdfont icons should be have a single space after them to make sure they won't overlap with text after them. --- README.md | 2 +- doc/bufferline.txt | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 578840da..4a598d4e 100644 --- a/README.md +++ b/README.md @@ -194,7 +194,7 @@ diagnostics_indicator = function(count, level, diagnostics_dict, context) local s = " " for e, n in pairs(diagnostics_dict) do local sym = e == "error" and " " - or (e == "warning" and " " or "" ) + or (e == "warning" and " " or " ") s = s .. n .. sym end return s diff --git a/doc/bufferline.txt b/doc/bufferline.txt index 8db19bdb..f8132a2e 100644 --- a/doc/bufferline.txt +++ b/doc/bufferline.txt @@ -80,10 +80,10 @@ The available configuration are: style = 'icon' | 'underline' | 'none', }, buffer_close_icon = '󰅖', - modified_icon = '●', - close_icon = '', - left_trunc_marker = '', - right_trunc_marker = '', + modified_icon = '● ', + close_icon = ' ', + left_trunc_marker = ' ', + right_trunc_marker = ' ', --- name_formatter can be used to change the buffer's label in the bufferline. --- Please note some names can/will break the --- bufferline so use this at your discretion knowing that it has @@ -316,7 +316,7 @@ a custom function in your setup. --- this should return a string --- Don't get too fancy as this function will be executed a lot diagnostics_indicator = function(count, level) - local icon = level:match("error") and " " or "" + local icon = level:match("error") and " " or " " return " " .. icon .. count end < @@ -337,7 +337,7 @@ current buffer and only have them appear for other buffers. return '' end - return '' + return ' ' end < @@ -361,7 +361,7 @@ In order to group buffers specify a list of groups in your config e.g. name = "Tests", -- Mandatory highlight = {underline = true, sp = "blue"}, -- Optional priority = 2, -- determines where it will appear relative to other groups (Optional) - icon = "", -- Optional + icon = " ", -- Optional matcher = function(buf) -- Mandatory return buf.filename:match('%_test') or buf.filename:match('%_spec') end, @@ -439,7 +439,7 @@ to other groups e.g. options = { groups = { items = { - require('bufferline.groups').builtin.pinned:with({ icon = "󰐃" }) + require('bufferline.groups').builtin.pinned:with({ icon = "󰐃 " }) ... -- other items } }