@@ -7,6 +7,8 @@ local defaults = {
|
||||
show_guides = true,
|
||||
position = 'right',
|
||||
auto_preview = true,
|
||||
show_numbers = false,
|
||||
show_relative_numbers = false,
|
||||
keymaps = {
|
||||
close = "<Esc>",
|
||||
goto_location = "<Cr>",
|
||||
@@ -20,6 +22,10 @@ local defaults = {
|
||||
|
||||
M.options = {}
|
||||
|
||||
function M.has_numbers()
|
||||
return M.options.show_numbers or M.options.show_relative_numbers
|
||||
end
|
||||
|
||||
function M.get_position_navigation_direction()
|
||||
if M.options.position == 'left' then
|
||||
return 'h'
|
||||
|
||||
@@ -29,6 +29,10 @@ local function get_offset()
|
||||
local width = 53
|
||||
local height = 0
|
||||
|
||||
if config.has_numbers() then
|
||||
width = width + 4;
|
||||
end
|
||||
|
||||
if config.options.position == 'right' then
|
||||
width = 0 - width
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user