Skip to content

Commit

Permalink
fix: proper deprecated fix ffs... Fixes #438
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 19, 2024
1 parent 551105a commit a8264a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/trouble/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ end

local function get_opts(...)
local args = { ... }
if vim.islist(args) and #args == 1 and type(args[1]) == "table" then
if (vim.islist or vim.tbl_islist)(args) and #args == 1 and type(args[1]) == "table" then
args = args[1]
end
local opts = {}
Expand Down

0 comments on commit a8264a6

Please sign in to comment.