chore: setup

This commit is contained in:
Chen Asraf
2023-05-15 02:09:42 +03:00
commit 45f1acb86f
28 changed files with 1080 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
local TextTransform = {}
--- Your plugin configuration with its default values.
---
--- Default values:
---@eval return MiniDoc.afterlines_to_code(MiniDoc.current.eval_section)
TextTransform.options = {
-- Prints useful logs about what event are triggered, and reasons actions are executed.
debug = false,
keymap = {
"<Leader>~",
},
}
--- Define your text-transform setup.
---
---@param options table Module config table. See |TextTransform.options|.
---
---@usage `require("text-transform").setup()` (add `{}` with your |TextTransform.options| table)
function TextTransform.setup(options)
options = options or {}
TextTransform.options = vim.tbl_deep_extend("keep", options, TextTransform.options)
return TextTransform.options
end
return TextTransform