mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
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.
This commit is contained in:
parent
76c1cab7ab
commit
5c00f8ede1
1 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ function M.checkhealth()
|
||||||
|
|
||||||
-- Only print informations about installed parsers
|
-- Only print informations about installed parsers
|
||||||
if installed >= 1 then
|
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))
|
local out = " - "..parser_name..multiple_parsers..string.rep(" ", 15 - (#parser_name + #multiple_parsers))
|
||||||
for _, query_group in pairs(queries.built_in_query_groups) do
|
for _, query_group in pairs(queries.built_in_query_groups) do
|
||||||
out = out..query_status(parser_name, query_group).." "
|
out = out..query_status(parser_name, query_group).." "
|
||||||
|
|
@ -72,7 +72,7 @@ function M.checkhealth()
|
||||||
print([[
|
print([[
|
||||||
|
|
||||||
Legend: H[ighlight], L[ocals], F[olds], I[ndents]
|
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}]])
|
x) errors found in the query, try to run :TSUpdate {lang}]])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue