fix var name
This commit is contained in:
parent
82021e3d97
commit
64b8b03cca
1 changed files with 2 additions and 3 deletions
|
|
@ -228,8 +228,8 @@ function M.ensure_io_view()
|
||||||
|
|
||||||
vim.cmd.vsplit()
|
vim.cmd.vsplit()
|
||||||
output_win = vim.api.nvim_get_current_win()
|
output_win = vim.api.nvim_get_current_win()
|
||||||
local config = config_module.get_config()
|
local cfg = config_module.get_config()
|
||||||
local width = math.floor(vim.o.columns * (config.ui.run.width or 0.3))
|
local width = math.floor(vim.o.columns * (cfg.ui.run.width or 0.3))
|
||||||
vim.api.nvim_win_set_width(output_win, width)
|
vim.api.nvim_win_set_width(output_win, width)
|
||||||
output_buf = utils.create_buffer_with_options()
|
output_buf = utils.create_buffer_with_options()
|
||||||
vim.api.nvim_win_set_buf(output_win, output_buf)
|
vim.api.nvim_win_set_buf(output_win, output_buf)
|
||||||
|
|
@ -247,7 +247,6 @@ function M.ensure_io_view()
|
||||||
current_test_index = 1,
|
current_test_index = 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
local cfg = config_module.get_config()
|
|
||||||
if cfg.hooks and cfg.hooks.setup_io_output then
|
if cfg.hooks and cfg.hooks.setup_io_output then
|
||||||
pcall(cfg.hooks.setup_io_output, output_buf, state)
|
pcall(cfg.hooks.setup_io_output, output_buf, state)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue