config: Export default table

#19
This commit is contained in:
simrat39
2021-09-06 17:47:55 -07:00
parent 80490ad0c6
commit c94d21f962

View File

@@ -2,7 +2,7 @@ local vim = vim
local M = {} local M = {}
local defaults = { M.defaults = {
highlight_hovered_item = true, highlight_hovered_item = true,
show_guides = true, show_guides = true,
position = 'right', position = 'right',
@@ -100,7 +100,7 @@ function M.show_help()
end end
function M.setup(options) function M.setup(options)
M.options = vim.tbl_deep_extend("force", {}, defaults, options or {}) M.options = vim.tbl_deep_extend("force", {}, M.defaults, options or {})
end end
return M return M