aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYi Ming <ofseed@foxmail.com>2024-05-17 14:03:23 +0800
committerGitHub <noreply@github.com>2024-05-17 14:03:23 +0800
commit5e54173da4e0ffd8e9559c0a1fddfb3b7df97bec (patch)
treea14366e4fb5434a1bec50430d50f5e3f3b8fe2de
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-5e54173da4e0ffd8e9559c0a1fddfb3b7df97bec.tar
nvim-lspconfig-5e54173da4e0ffd8e9559c0a1fddfb3b7df97bec.tar.gz
nvim-lspconfig-5e54173da4e0ffd8e9559c0a1fddfb3b7df97bec.tar.bz2
nvim-lspconfig-5e54173da4e0ffd8e9559c0a1fddfb3b7df97bec.tar.lz
nvim-lspconfig-5e54173da4e0ffd8e9559c0a1fddfb3b7df97bec.tar.xz
nvim-lspconfig-5e54173da4e0ffd8e9559c0a1fddfb3b7df97bec.tar.zst
nvim-lspconfig-5e54173da4e0ffd8e9559c0a1fddfb3b7df97bec.zip
refactor: remove usages of deprecated vim.tbl_add_reverse_lookup (#3156)
-rw-r--r--lua/lspconfig/server_configurations/texlab.lua20
1 files changed, 10 insertions, 10 deletions
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)