mirror of
https://github.com/kristoferssolo/runner.nvim.git
synced 2026-02-04 14:12:02 +00:00
Merge from main
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
local M = {}
|
||||
|
||||
local config = require('runner.config')
|
||||
|
||||
M._buffer = nil
|
||||
M._window = nil
|
||||
|
||||
@@ -21,7 +23,16 @@ M.create_window = function()
|
||||
return M._window
|
||||
end
|
||||
|
||||
vim.cmd([[ vsplit ]])
|
||||
if config.options.position == 'right' then
|
||||
vim.cmd('botright ' .. config.options.width .. ' vsplit')
|
||||
elseif config.options.position == 'left' then
|
||||
vim.cmd('topleft ' .. config.options.width .. ' vsplit')
|
||||
elseif config.options.position == 'bottom' then
|
||||
vim.cmd('botright ' .. config.options.height .. 'split')
|
||||
elseif config.options.position == 'top' then
|
||||
vim.cmd('topleft ' .. config.options.height .. 'split')
|
||||
end
|
||||
|
||||
local window = vim.api.nvim_get_current_win()
|
||||
|
||||
local window_opts = {
|
||||
|
||||
Reference in New Issue
Block a user