From 5e54173da4e0ffd8e9559c0a1fddfb3b7df97bec Mon Sep 17 00:00:00 2001 From: Yi Ming Date: Fri, 17 May 2024 14:03:23 +0800 Subject: refactor: remove usages of deprecated vim.tbl_add_reverse_lookup (#3156) --- lua/lspconfig/server_configurations/texlab.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/texlab.lua b/lua/lspconfig/server_configurations/texlab.lua index 5200e044..36198d0a 100644 --- a/lua/lspconfig/server_configurations/texlab.lua +++ b/lua/lspconfig/server_configurations/texlab.lua @@ -1,17 +1,17 @@ local util = require 'lspconfig.util' -local texlab_build_status = vim.tbl_add_reverse_lookup { - Success = 0, - Error = 1, - Failure = 2, - Cancelled = 3, +local texlab_build_status = { + [0] = 'Success', + [1] = 'Error', + [2] = 'Failure', + [3] = 'Cancelled', } -local texlab_forward_status = vim.tbl_add_reverse_lookup { - Success = 0, - Error = 1, - Failure = 2, - Unconfigured = 3, +local texlab_forward_status = { + [0] = 'Success', + [1] = 'Error', + [2] = 'Failure', + [3] = 'Unconfigured', } local function buf_build(bufnr) -- cgit v1.2.3-70-g09d2