Skip to content

Commit 208d85f

Browse files
committed
chore(build): auto-generate vimdoc
1 parent 5fde84d commit 208d85f

File tree

2 files changed

+324
-0
lines changed

2 files changed

+324
-0
lines changed

doc/api.md

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
# Lua API
2+
3+
astrotheme API documentation
4+
5+
## astrotheme
6+
7+
AstroTheme
8+
9+
The default colorscheme used by AstroNvim an aesthetic and feature-rich
10+
neovim config that is extensible and easy to use with a great set of
11+
plugins
12+
13+
This module can be loaded with `local astrotheme = require "astrotheme"`
14+
15+
copyright 2023 license GNU General Public License v3.0 @class astrocore
16+
17+
### config
18+
19+
20+
```lua
21+
AstroThemeOpts
22+
```
23+
24+
### load
25+
26+
27+
```lua
28+
function astrotheme.load(theme?: string)
29+
```
30+
31+
Load a specific theme given a palette name
32+
33+
### setup
34+
35+
36+
```lua
37+
function astrotheme.setup(opts: AstroThemeOpts)
38+
```
39+
40+
Set up AstroTheme with provided user configured options
41+
42+
43+
## astrotheme.lib.config
44+
45+
AstroTheme Configuration
46+
47+
Default configuration of AstroTheme
48+
49+
This module can be loaded with `local astrotheme_config = require "astrotheme.lib.config"`
50+
51+
copyright 2023 license GNU General Public License v3.0 @class astrocore
52+
53+
### default
54+
55+
56+
```lua
57+
AstroThemeOpts
58+
```
59+
60+
### user_config
61+
62+
63+
```lua
64+
function M.user_config(opts: AstroThemeOpts)
65+
-> AstroThemeOpts
66+
```
67+
68+
69+
## astrotheme.lib.util
70+
71+
AstroTheme Utilities
72+
73+
Various utilities for use within AstroTheme
74+
75+
This module can be loaded with `local astrotheme_utils = require "astrotheme.lib.util"`
76+
77+
copyright 2023 license GNU General Public License v3.0 @class astrocore
78+
79+
### get_hl_modules
80+
81+
82+
```lua
83+
function astrotheme.lib.util.get_hl_modules(highlights: table<string, vim.api.keyset.highlight>, path: string, modules: string[], opts: AstroThemeOpts)
84+
-> table<string, vim.api.keyset.highlight>
85+
```
86+
87+
Compile all highlights from a list of modules
88+
89+
### get_plugin_list
90+
91+
92+
```lua
93+
function astrotheme.lib.util.get_plugin_list(opts: AstroThemeOpts)
94+
-> string[]
95+
```
96+
97+
Retrieve a list of all plugins to enable
98+
99+
### live_reloading
100+
101+
102+
```lua
103+
function astrotheme.lib.util.live_reloading(opts: AstroThemeOpts)
104+
```
105+
106+
Enable live reloading of AstroTheme for development
107+
108+
### reload
109+
110+
111+
```lua
112+
function astrotheme.lib.util.reload(opts: AstroThemeOpts, theme: string)
113+
```
114+
115+
Reload a given theme
116+
117+
### reload_module
118+
119+
120+
```lua
121+
function astrotheme.lib.util.reload_module(module: string, bool: boolean)
122+
-> any
123+
```
124+
125+
Reload a module
126+
127+
### set_highlights
128+
129+
130+
```lua
131+
function astrotheme.lib.util.set_highlights(opts: AstroThemeOpts, highlights: table<string, vim.api.keyset.highlight>, theme: string)
132+
```
133+
134+
Set highlights in Neovim
135+
136+
### set_palettes
137+
138+
139+
```lua
140+
function astrotheme.lib.util.set_palettes(opts: AstroThemeOpts)
141+
-> AstroThemePalette
142+
```
143+
144+
Set a palette given a AstroTheme options
145+
146+
### set_terminal_colors
147+
148+
149+
```lua
150+
function astrotheme.lib.util.set_terminal_colors()
151+
```
152+
153+
Set terminal colors based on the currently loaded colors
154+
155+

doc/astrotheme.txt

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ Table of Contents *astrotheme-table-of-contents*
1111
- Supported Plugins |astrotheme-supported-plugins|
1212
- Installation |astrotheme-installation|
1313
- Contributing |astrotheme-contributing|
14+
1. Lua API |astrotheme-lua-api|
15+
- astrotheme |astrotheme-lua-api-astrotheme|
16+
- astrotheme.lib.config |astrotheme-lua-api-astrotheme.lib.config|
17+
- astrotheme.lib.util |astrotheme-lua-api-astrotheme.lib.util|
1418
AstroThemeThe default colorscheme used by AstroNvim an aesthetic and feature-rich neovim config that is extensible and easy to use with a great set of plugins
1519
FEATURES *astrotheme-features*
1620

@@ -290,6 +294,171 @@ CONTRIBUTING *astrotheme-contributing*
290294
If you plan to contribute, please check the contribution guidelines
291295
<https://github.com/AstroNvim/.github/blob/main/CONTRIBUTING.md> first.
292296

297+
298+
==============================================================================
299+
1. Lua API *astrotheme-lua-api*
300+
301+
astrotheme API documentation
302+
303+
304+
ASTROTHEME *astrotheme-lua-api-astrotheme*
305+
306+
AstroTheme
307+
308+
The default colorscheme used by AstroNvim an aesthetic and feature-rich neovim
309+
config that is extensible and easy to use with a great set of plugins
310+
311+
This module can be loaded with `local astrotheme = require "astrotheme"`
312+
313+
copyright 2023 license GNU General Public License v3.0 @class astrocore
314+
315+
316+
CONFIG ~
317+
318+
>lua
319+
AstroThemeOpts
320+
<
321+
322+
323+
LOAD ~
324+
325+
>lua
326+
function astrotheme.load(theme?: string)
327+
<
328+
329+
Load a specific theme given a palette name
330+
331+
332+
SETUP ~
333+
334+
>lua
335+
function astrotheme.setup(opts: AstroThemeOpts)
336+
<
337+
338+
Set up AstroTheme with provided user configured options
339+
340+
341+
ASTROTHEME.LIB.CONFIG *astrotheme-lua-api-astrotheme.lib.config*
342+
343+
AstroTheme Configuration
344+
345+
Default configuration of AstroTheme
346+
347+
This module can be loaded with `local astrotheme_config = require
348+
"astrotheme.lib.config"`
349+
350+
copyright 2023 license GNU General Public License v3.0 @class astrocore
351+
352+
353+
DEFAULT ~
354+
355+
>lua
356+
AstroThemeOpts
357+
<
358+
359+
360+
USER_CONFIG ~
361+
362+
>lua
363+
function M.user_config(opts: AstroThemeOpts)
364+
-> AstroThemeOpts
365+
<
366+
367+
368+
ASTROTHEME.LIB.UTIL *astrotheme-lua-api-astrotheme.lib.util*
369+
370+
AstroTheme Utilities
371+
372+
Various utilities for use within AstroTheme
373+
374+
This module can be loaded with `local astrotheme_utils = require
375+
"astrotheme.lib.util"`
376+
377+
copyright 2023 license GNU General Public License v3.0 @class astrocore
378+
379+
380+
GET_HL_MODULES ~
381+
382+
>lua
383+
function astrotheme.lib.util.get_hl_modules(highlights: table<string, vim.api.keyset.highlight>, path: string, modules: string[], opts: AstroThemeOpts)
384+
-> table<string, vim.api.keyset.highlight>
385+
<
386+
387+
Compile all highlights from a list of modules
388+
389+
390+
GET_PLUGIN_LIST ~
391+
392+
>lua
393+
function astrotheme.lib.util.get_plugin_list(opts: AstroThemeOpts)
394+
-> string[]
395+
<
396+
397+
Retrieve a list of all plugins to enable
398+
399+
400+
LIVE_RELOADING ~
401+
402+
>lua
403+
function astrotheme.lib.util.live_reloading(opts: AstroThemeOpts)
404+
<
405+
406+
Enable live reloading of AstroTheme for development
407+
408+
409+
RELOAD ~
410+
411+
>lua
412+
function astrotheme.lib.util.reload(opts: AstroThemeOpts, theme: string)
413+
<
414+
415+
Reload a given theme
416+
417+
418+
RELOAD_MODULE ~
419+
420+
>lua
421+
function astrotheme.lib.util.reload_module(module: string, bool: boolean)
422+
-> any
423+
<
424+
425+
Reload a module
426+
427+
428+
SET_HIGHLIGHTS ~
429+
430+
>lua
431+
function astrotheme.lib.util.set_highlights(opts: AstroThemeOpts, highlights: table<string, vim.api.keyset.highlight>, theme: string)
432+
<
433+
434+
Set highlights in Neovim
435+
436+
437+
SET_PALETTES ~
438+
439+
>lua
440+
function astrotheme.lib.util.set_palettes(opts: AstroThemeOpts)
441+
-> AstroThemePalette
442+
<
443+
444+
Set a palette given a AstroTheme options
445+
446+
447+
SET_TERMINAL_COLORS ~
448+
449+
>lua
450+
function astrotheme.lib.util.set_terminal_colors()
451+
<
452+
453+
Set terminal colors based on the currently loaded colors
454+
455+
==============================================================================
456+
2. Links *astrotheme-links*
457+
458+
1. *@class*:
459+
2. *@class*:
460+
3. *@class*:
461+
293462
Generated by panvimdoc <https://github.com/kdheepak/panvimdoc>
294463

295464
vim:tw=78:ts=8:noet:ft=help:norl:

0 commit comments

Comments
 (0)