From f290b5e4f8769c9987f9acd2a68e40f5c23b2e7e Mon Sep 17 00:00:00 2001 From: Mateen Ulhaq Date: Thu, 25 Jul 2024 16:27:08 -0700 Subject: [PATCH] fix(dictionary): write dictionary in deterministic order --- lua/ltex-utils/table_utils.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/ltex-utils/table_utils.lua b/lua/ltex-utils/table_utils.lua index 168ab5d..b2270eb 100644 --- a/lua/ltex-utils/table_utils.lua +++ b/lua/ltex-utils/table_utils.lua @@ -49,6 +49,8 @@ function M.merge_lists_unique(list1, list2, changes) ---@type string[] local merged_list = vim.tbl_keys(unique_elements) + table.sort(merged_list) + return merged_list end