Now you can open the currently selected item in a vertical split or a horizontal split. The completion callback must support the current actions. There is also a bit of testing in here. The vim mock has been refactored and split out so we can use it multiple tests.
14 lines
305 B
Lua
14 lines
305 B
Lua
local vim_mock = require "ivy.vim_mock"
|
|
local window = require "ivy.window"
|
|
|
|
before_each(function()
|
|
vim_mock.reset()
|
|
end)
|
|
|
|
it("can initialize", function(t)
|
|
window.initialize()
|
|
|
|
if window.get_buffer() ~= 10 then
|
|
t.error("The windows buffer should be 10 found " .. window.get_buffer())
|
|
end
|
|
end)
|