@@ -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 |
1418AstroThemeThe 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
1519FEATURES *astrotheme-features*
1620
@@ -290,6 +294,171 @@ CONTRIBUTING *astrotheme-contributing*
290294If 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+
293462Generated by panvimdoc <https://github.com/kdheepak/panvimdoc >
294463
295464vim:tw=78:ts=8:noet:ft=help:norl:
0 commit comments