Skip to content

Commit

Permalink
docs: fix documentation of modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Dec 8, 2023
1 parent 7154afb commit 5fde84d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .neoconf.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"neodev": {
"library": {
"enabled": true,
"plugins": true
"plugins": ["lazy.nvim"]
}
},
"neoconf": {
Expand All @@ -14,7 +14,8 @@
},
"lspconfig": {
"lua_ls": {
"Lua.format.enable": false
"Lua.format.enable": false,
"Lua.diagnostics.globals": ["packer_plugins"]
}
}
}
15 changes: 13 additions & 2 deletions lua/astrotheme/init.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
---AstroTheme
---
--- The 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
---
---This module can be loaded with `local astrotheme = require "astrotheme"`
---
---copyright 2023 license GNU General Public License v3.0 @class astrocore
---@class astrotheme
---@field config AstroThemeOpts
local M = { config = {} }

C = {}
local util = require "astrotheme.lib.util"

local M = { config = {} }

--- Load a specific theme given a palette name
---@param theme string?
function M.load(theme)
Expand Down
8 changes: 8 additions & 0 deletions lua/astrotheme/lib/config.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---AstroTheme Configuration
---
---Default configuration of AstroTheme
---
---This module can be loaded with `local astrotheme_config = require "astrotheme.lib.config"`
---
---copyright 2023 license GNU General Public License v3.0 @class astrocore
---@class astrotheme.lib.config
M = {}

---@type AstroThemeOpts
Expand Down
8 changes: 8 additions & 0 deletions lua/astrotheme/lib/util.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---AstroTheme Utilities
---
---Various utilities for use within AstroTheme
---
---This module can be loaded with `local astrotheme_utils = require "astrotheme.lib.util"`
---
---copyright 2023 license GNU General Public License v3.0 @class astrocore
---@class astrotheme.lib.util
local M = {}

--- Reload a given theme
Expand Down

0 comments on commit 5fde84d

Please sign in to comment.