Skip to content

Commit

Permalink
refactor: remove usages of deprecated vim.tbl_add_reverse_lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
ofseed committed May 17, 2024
1 parent a379955 commit 9fc3250
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lua/lspconfig/server_configurations/texlab.lua
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 9fc3250

Please sign in to comment.