From e223369a374af88c1e59e357405cf3053f2beb92 Mon Sep 17 00:00:00 2001 From: David O'Trakoun Date: Fri, 25 Oct 2024 23:25:38 -0400 Subject: [PATCH] bulletted list --- nvim/lua/dko/doctor.lua | 17 +++++------------ nvim/lua/dko/icons.lua | 1 + 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/nvim/lua/dko/doctor.lua b/nvim/lua/dko/doctor.lua index 1f808640..08b8d54d 100644 --- a/nvim/lua/dko/doctor.lua +++ b/nvim/lua/dko/doctor.lua @@ -36,31 +36,24 @@ M.get_all = function() local errors = M.get_errors() if #errors > 0 then - table.insert(output, "ᴇʀʀᴏʀs") + table.insert(output, ("%s ᴇʀʀᴏʀs"):format(dkoicons.Error)) table.insert(output, table.concat(errors, "\n")) end local warnings = M.get_warnings() if #warnings > 0 then - table.insert(output, "ᴡᴀʀɴɪɴɢs") + table.insert(output, ("%s ᴡᴀʀɴɪɴɢs"):format(dkoicons.Warn)) table.insert(output, table.concat(warnings, "\n")) end return output end ----@param icon DKOIcon ----@param entry DKODoctorEntry ----@return string -M.format_entry = function(icon, entry) - return ("%s %s"):format(dkoicons[icon], entry.message) -end - M.get_errors = function() return vim .iter(M.errors) :map(function(entry) - return M.format_entry("Error", entry) + return ("%s %s"):format(dkoicons.Bullet, entry.message) end) :totable() end @@ -69,7 +62,7 @@ M.get_warnings = function() return vim .iter(M.warnings) :map(function(entry) - return M.format_entry("Warn", entry) + return ("%s %s"):format(dkoicons.Bullet, entry.message) end) :totable() end @@ -103,7 +96,7 @@ M.show_float = function() local opts = vim.tbl_extend("force", { style = "minimal", border = "single", - title = "  doctor ", + title = "  ᴅᴏᴄᴛᴏʀ ", title_pos = "right", }, position, size) local ENTER = false diff --git a/nvim/lua/dko/icons.lua b/nvim/lua/dko/icons.lua index fbc06b19..3c432c93 100644 --- a/nvim/lua/dko/icons.lua +++ b/nvim/lua/dko/icons.lua @@ -10,6 +10,7 @@ local M = { Hint = "", Trace = "", -- "✎", Off = "", + Bullet = "•", } return M