From 5c00f8ede14a132a7f1ce2fa1b32c5708baa071f Mon Sep 17 00:00:00 2001 From: nbCloud91 <73609114+nbCloud91@users.noreply.github.com> Date: Thu, 18 Mar 2021 11:06:21 +0530 Subject: fix formatting issues caused by asterisk Replace the asterisk used for "Multiple parsers found" by a plus sign. It prevents the asterisk from messing up the formatting of the rest of the `:checkhealth` buffer. --- lua/nvim-treesitter/health.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/nvim-treesitter/health.lua b/lua/nvim-treesitter/health.lua index b499720cf..6492fff75 100644 --- a/lua/nvim-treesitter/health.lua +++ b/lua/nvim-treesitter/health.lua @@ -61,7 +61,7 @@ function M.checkhealth() -- Only print informations about installed parsers if installed >= 1 then - local multiple_parsers = installed > 1 and "*" or "" + local multiple_parsers = installed > 1 and "+" or "" local out = " - "..parser_name..multiple_parsers..string.rep(" ", 15 - (#parser_name + #multiple_parsers)) for _, query_group in pairs(queries.built_in_query_groups) do out = out..query_status(parser_name, query_group).." " @@ -72,7 +72,7 @@ function M.checkhealth() print([[ Legend: H[ighlight], L[ocals], F[olds], I[ndents] - *) multiple parsers found, only one will be used + +) multiple parsers found, only one will be used x) errors found in the query, try to run :TSUpdate {lang}]]) end -- cgit v1.2.3-70-g09d2