mirror of
https://github.com/chenasraf/text-transform.nvim.git
synced 2026-05-18 01:48:57 +00:00
chore: setup
This commit is contained in:
28
lua/text-transform/config.lua
Normal file
28
lua/text-transform/config.lua
Normal 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
|
||||
Reference in New Issue
Block a user