Skip to content

Commit

Permalink
fix(neotest): Fix bug in neotest by checking for existing library key…
Browse files Browse the repository at this point in the history
… table (#440)

Co-authored-by: Micah Halter <[email protected]>
  • Loading branch information
Uzaaft and mehalter committed Jul 15, 2023
1 parent 5a54e6c commit 86640cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/astrocommunity/test/neotest/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ return {
{
"folke/neodev.nvim",
opts = function(_, opts)
opts.library.plugins = require("astronvim.utils").list_insert_unique(opts.library.plugins, "neotest")
opts.library = opts.library or {}
if opts.library.plugins ~= true then
opts.library.plugins = require("astronvim.utils").list_insert_unique(opts.library.plugins, "neotest")
end
opts.library.types = true
end,
},
Expand Down

0 comments on commit 86640cc

Please sign in to comment.