mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 23:40:04 -04:00
fix(health): sort language names
This commit is contained in:
parent
1181cd9a25
commit
98459ffcf7
1 changed files with 2 additions and 1 deletions
|
|
@ -135,7 +135,8 @@ function M.check()
|
||||||
-- Parser installation checks
|
-- Parser installation checks
|
||||||
health.start('Installed languages' .. string.rep(' ', 5) .. 'H L F I J')
|
health.start('Installed languages' .. string.rep(' ', 5) .. 'H L F I J')
|
||||||
local languages = config.get_installed()
|
local languages = config.get_installed()
|
||||||
for _, lang in pairs(languages) do
|
table.sort(languages)
|
||||||
|
for _, lang in ipairs(languages) do
|
||||||
local parser = parsers[lang]
|
local parser = parsers[lang]
|
||||||
local out = lang .. string.rep(' ', 22 - #lang)
|
local out = lang .. string.rep(' ', 22 - #lang)
|
||||||
if parser and parser.install_info then
|
if parser and parser.install_info then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue