From 6435a367a57f267039c4c69a723cec09ae61b17e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3n=C3=A1n=20Carrigan?= Date: Mon, 15 May 2023 11:06:27 +0100 Subject: [PATCH] fix(stratgies/integrated): use nio.fn/api --- lua/neotest/client/strategies/integrated/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/neotest/client/strategies/integrated/init.lua b/lua/neotest/client/strategies/integrated/init.lua index a8147502..0e1e7eab 100644 --- a/lua/neotest/client/strategies/integrated/init.lua +++ b/lua/neotest/client/strategies/integrated/init.lua @@ -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) @@ -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()