Skip to content

Commit

Permalink
fix(E565): Not allowed to change text or change window
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Jul 8, 2024
1 parent 7c720b4 commit c57453f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lua/neotest-golang/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ local M = {}
--- @field name string
M.Adapter = {
name = "neotest-golang",
init = function()
if options.get().testify == true then
testify.generate_lookup_map()
end
end,
}

--- Find the project root directory given a current directory to work from.
Expand Down Expand Up @@ -193,12 +198,6 @@ end
setmetatable(M.Adapter, {
__call = function(_, opts)
M.Adapter.options = options.setup(opts)

-- FIXME: not the best place to put this. Does Neotest provide a callback?
if options.get().testify == true then
testify.generate_lookup_map()
end

return M.Adapter
end,
})
Expand Down

0 comments on commit c57453f

Please sign in to comment.