refractor(opts): Move options into its own module

This commit is contained in:
simrat39
2021-04-22 20:01:49 -07:00
parent d4042c99d4
commit 8d8f44e04b
2 changed files with 18 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
local vim = vim
local M = {}
local defaults = {
highlight_hovered_item = true,
}
M.options = {}
function M.setup(options)
M.options = vim.tbl_deep_extend("force", {}, defaults, options or {})
end
return M