aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2022-12-21 12:22:45 +0100
committerChristian Clason <c.clason@uni-graz.at>2022-12-21 13:08:15 +0100
commit87dd482e1a7056fee95891af6ba3e662e766af77 (patch)
tree896a9c8b4cf8d3de85cfc9d2817f918f0ec8c7de
parentUpdate parsers: c_sharp, gdscript, sql (diff)
downloadnvim-treesitter-87dd482e1a7056fee95891af6ba3e662e766af77.tar
nvim-treesitter-87dd482e1a7056fee95891af6ba3e662e766af77.tar.gz
nvim-treesitter-87dd482e1a7056fee95891af6ba3e662e766af77.tar.bz2
nvim-treesitter-87dd482e1a7056fee95891af6ba3e662e766af77.tar.lz
nvim-treesitter-87dd482e1a7056fee95891af6ba3e662e766af77.tar.xz
nvim-treesitter-87dd482e1a7056fee95891af6ba3e662e766af77.tar.zst
nvim-treesitter-87dd482e1a7056fee95891af6ba3e662e766af77.zip
fix(health): align the list of parsers when doing checkhealth
Some parser names are too long for the given space, which shifts the features so they aren't in line.
-rw-r--r--lua/nvim-treesitter/health.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/nvim-treesitter/health.lua b/lua/nvim-treesitter/health.lua
index 9501008df..40ec3448e 100644
--- a/lua/nvim-treesitter/health.lua
+++ b/lua/nvim-treesitter/health.lua
@@ -115,14 +115,14 @@ function M.check()
install_health()
queries.invalidate_query_cache()
-- Parser installation checks
- local parser_installation = { "Parser/Features H L F I J" }
+ local parser_installation = { "Parser/Features" .. string.rep(" ", 9) .. "H L F I J" }
for _, parser_name in pairs(info.installed_parsers()) do
local installed = #api.nvim_get_runtime_file("parser/" .. parser_name .. ".so", false)
-- Only append information about installed parsers
if installed >= 1 then
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(" ", 20 - (#parser_name + #multiple_parsers))
for _, query_group in pairs(queries.built_in_query_groups) do
local status, err = query_status(parser_name, query_group)
out = out .. status .. " "