Skip to content

Commit

Permalink
fix: handle normal api calls to trouble as it should #42
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 2, 2021
1 parent 4f84ca4 commit 52b875d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/trouble/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ end

local function get_opts(...)
local args = { ... }
if vim.tbl_islist(args) and #args == 1 and type(args[1]) == "table" then
args = args[1]
end
local opts = {}
for key, value in pairs(args) do
if type(key) == "number" then
Expand Down

0 comments on commit 52b875d

Please sign in to comment.