Skip to content

Commit

Permalink
fix(stratgies/integrated): use nio.fn/api
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarriga committed May 15, 2023
1 parent 42cf226 commit 6435a36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/neotest/client/strategies/integrated/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ return function(spec)
attach_buf = nil
end

if vim.fn.bufexists(attach_buf) == 0 then
if nio.fn.bufexists(attach_buf) == 0 then
attach_buf = nio.api.nvim_create_buf(false, true)
attach_chan = lib.ui.open_term(attach_buf, {
on_input = function(_, _, _, data)
Expand All @@ -96,8 +96,8 @@ return function(spec)
width = spec.strategy.width,
buffer = attach_buf,
})
vim.api.nvim_buf_set_option(attach_buf, "filetype", "neotest-attach")
vim.api.nvim_buf_set_option(attach_buf, "bufhidden", "wipe")
nio.api.nvim_buf_set_option(attach_buf, "filetype", "neotest-attach")
nio.api.nvim_buf_set_option(attach_buf, "bufhidden", "wipe")
attach_win:jump_to()
end,
result = function()
Expand Down

0 comments on commit 6435a36

Please sign in to comment.