34 lines
555 B
Lua
34 lines
555 B
Lua
local vim = vim
|
|
|
|
local M = {}
|
|
|
|
local defaults = {
|
|
highlight_hovered_item = true,
|
|
show_guides = true,
|
|
position = 'right'
|
|
}
|
|
|
|
M.options = {}
|
|
|
|
function M.get_position_navigation_direction()
|
|
if M.options.position == 'left' then
|
|
return 'h'
|
|
else
|
|
return 'l'
|
|
end
|
|
end
|
|
|
|
function M.get_split_command()
|
|
if M.options.position == 'left' then
|
|
return "topleft vs"
|
|
else
|
|
return "vs"
|
|
end
|
|
end
|
|
|
|
function M.setup(options)
|
|
M.options = vim.tbl_deep_extend("force", {}, defaults, options or {})
|
|
end
|
|
|
|
return M
|