From 8e7fe74888e7e3d82a46fcface070adff1bbefe0 Mon Sep 17 00:00:00 2001 From: Chen Asraf Date: Sat, 4 May 2024 23:43:52 +0300 Subject: [PATCH] docs: update auto docs --- doc/tags | 1 + doc/text-transform.txt | 21 +++++---------------- lua/text-transform/config.lua | 1 + 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/doc/tags b/doc/tags index 827ccc7..2e02c1c 100644 --- a/doc/tags +++ b/doc/tags @@ -19,6 +19,7 @@ TextTransform.to_words() text-transform.txt /*TextTransform.to_words()* TextTransform.toggle() text-transform.txt /*TextTransform.toggle()* TextTransform.transform_words() text-transform.txt /*TextTransform.transform_words()* find_word_boundaries() text-transform.txt /*find_word_boundaries()* +init() text-transform.txt /*init()* telescope.telescope_popup() text-transform.txt /*telescope.telescope_popup()* utils.dump() text-transform.txt /*utils.dump()* utils.merge() text-transform.txt /*utils.merge()* diff --git a/doc/text-transform.txt b/doc/text-transform.txt index 93a56e3..2278f6f 100644 --- a/doc/text-transform.txt +++ b/doc/text-transform.txt @@ -52,24 +52,13 @@ Default values: popup_type = "telescope", } - local function init() - local o = TextTransform.options - D.log("config", "Initializing TextTransform with %s", utils.dump(o)) - commands.init_commands() - - if o.keymap.telescope_popup then - local keys = o.keymap.telescope_popup - if keys.n then - vim.keymap.set("n", keys.n, popup.show_popup, { silent = true, desc = "Change Case" }) - end - if keys.v then - vim.keymap.set("v", keys.v, popup.show_popup, { silent = true, desc = "Change Case" }) - end - end - end - < +------------------------------------------------------------------------------ + *init()* + `init`() +@internal + ------------------------------------------------------------------------------ *TextTransform.setup()* `TextTransform.setup`({options}) diff --git a/lua/text-transform/config.lua b/lua/text-transform/config.lua index 2fcf87c..8f73e10 100644 --- a/lua/text-transform/config.lua +++ b/lua/text-transform/config.lua @@ -46,6 +46,7 @@ TextTransform.options = { popup_type = "telescope", } +--- @internal local function init() local o = TextTransform.options D.log("config", "Initializing TextTransform with %s", utils.dump(o))