From ce0da94145eb1faf155e586abddbae70f4f3bd46 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Mon, 19 Apr 2021 09:55:46 -0400 Subject: Fixed documentation on generating Lua autocompletion and documentation files for user modules. --- docs/manual.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'docs/manual.md') diff --git a/docs/manual.md b/docs/manual.md index 6189a984..52e8fd6d 100644 --- a/docs/manual.md +++ b/docs/manual.md @@ -1409,12 +1409,14 @@ You can generate for use with Textadept [autocompletion and documentation](#autocompletion-and-documentation) files for your Lua modules. Simply run [LuaDoc][] with Textadept's *modules/lua/tadoc.lua* doclet. For example: - luadoc -d [output_path] --doclet _HOME/modules/lua/tadoc.lua [module(s)] - -where `_HOME` is the path where you installed Textadept and `output_path` is an arbitrary -path to write the generated *tags* and *api* files to. You can then have Textadept load and -use those autocompletion and documentation files when editing Lua code. For example, in your -*~/.textadept/init.lua*: + cd _HOME + luadoc -d [output_path] --doclet modules/lua/tadoc [/path/to/module(s)] + +where `_HOME` is the path where you installed Textadept and `output_path` is an arbitrary path +to write the generated *tags* and *api* files to. (Note that LuaDoc does not like absolute paths +to doclets, so running `luadoc` from `_HOME` is one way to get it to work.) You can then have +Textadept load and use those autocompletion and documentation files when editing Lua code. For +example, in your *~/.textadept/init.lua*: local loaded_tags = false events.connect(events.LEXER_LOADED, function(name) -- cgit v1.2.3