diff options
| author | Yi Ming <ofseed@foxmail.com> | 2024-05-17 14:03:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-17 14:03:23 +0800 |
| commit | 5e54173da4e0ffd8e9559c0a1fddfb3b7df97bec (patch) | |
| tree | a14366e4fb5434a1bec50430d50f5e3f3b8fe2de /lua/lspconfig/server_configurations/texlab.lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-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)
Diffstat (limited to 'lua/lspconfig/server_configurations/texlab.lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/texlab.lua | 20 |
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) |
