aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/health.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/health.lua b/lua/nvim-treesitter/health.lua
index e284381dd..b4d0c62d5 100644
--- a/lua/nvim-treesitter/health.lua
+++ b/lua/nvim-treesitter/health.lua
@@ -135,7 +135,8 @@ function M.check()
-- Parser installation checks
health.start('Installed languages' .. string.rep(' ', 5) .. 'H L F I J')
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 out = lang .. string.rep(' ', 22 - #lang)
if parser and parser.install_info then