mirror of
https://github.com/kristoferssolo/runner.nvim.git
synced 2026-02-04 06:12:01 +00:00
Fix single quotes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
local M = {}
|
||||
|
||||
local defaults = {
|
||||
position = "right", -- options: top, left, right, bottom
|
||||
position = 'right', -- options: top, left, right, bottom
|
||||
width = 80, -- width of window when position is left or right
|
||||
height = 10, -- height of window when position is top or bottom
|
||||
}
|
||||
@@ -9,7 +9,7 @@ local defaults = {
|
||||
M.options = {}
|
||||
|
||||
M.setup = function(options)
|
||||
M.options = vim.tbl_deep_extend("force", {}, defaults, options or {})
|
||||
M.options = vim.tbl_deep_extend('force', {}, defaults, options or {})
|
||||
end
|
||||
|
||||
M.setup()
|
||||
|
||||
@@ -23,13 +23,13 @@ M.create_window = function()
|
||||
return M._window
|
||||
end
|
||||
|
||||
if (config.options.position == "right") then
|
||||
if (config.options.position == 'right') then
|
||||
vim.cmd('botright ' .. config.options.width .. ' vsplit')
|
||||
elseif (config.options.position == "left") then
|
||||
elseif (config.options.position == 'left') then
|
||||
vim.cmd('topleft ' .. config.options.width .. ' vsplit')
|
||||
elseif (config.options.position == "bottom") then
|
||||
elseif (config.options.position == 'bottom') then
|
||||
vim.cmd('botright ' .. config.options.height .. 'split')
|
||||
elseif (config.options.position == "top") then
|
||||
elseif (config.options.position == 'top') then
|
||||
vim.cmd('topleft ' .. config.options.height .. 'split')
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user