Skip to content

Commit 77d1e84

Browse files
authored
chore: fix a few docgen warnings (#1658)
1 parent 18d1a18 commit 77d1e84

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

docgen/docgen.lua

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ local lib, modules, utils, log = neorg.lib, neorg.modules, neorg.utils, neorg.lo
3737
neorg.org_file_entered(false)
3838

3939
-- Extract treesitter utility functions provided by Neorg and nvim-treesitter.ts_utils
40+
---@type core.integrations.treesitter
4041
local ts = modules.get_module("core.integrations.treesitter")
4142
assert(ts, "treesitter not available")
4243

lua/neorg/modules/core/completion/module.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module.config.public = {
4444
-- - `{ module_name = "external.lsp-completion" }` this must be used with
4545
-- [neorg-interim-ls](https://github.com/benlubas/neorg-interim-ls) and can provide
4646
-- completions through a shim Language Server. This allows users without an auto complete
47-
-- plugin to still get neorg completions
47+
-- plugin to still get Neorg completions
4848
engine = nil,
4949

5050
-- The identifier for the Neorg source.

lua/neorg/modules/core/integrations/treesitter/module.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ module.public = {
496496
--- Recursively attempts to locate a node of a given type
497497
---@param type string #The type of node to look for
498498
---@param opts table #A table of two options: `buf` and `ft`, for the buffer and format respectively
499-
---@return any ---@diagnostic disable-line -- TODO: type error workaround <pysan3>
499+
---@return TSNode?
500500
get_first_node_recursive = function(type, opts)
501501
opts = opts or {}
502502
local result

lua/neorg/modules/core/qol/toc/module.lua

+10-10
Original file line numberDiff line numberDiff line change
@@ -59,36 +59,36 @@ module.load = function()
5959
end
6060

6161
module.config.public = {
62-
-- close the Table of Contents after an entry in the table is picked
62+
-- Close the Table of Contents after an entry in the table is picked
6363
close_after_use = false,
6464

65-
-- width of the Table of Contents window will automatically fit its longest line, up to
65+
-- Width of the Table of Contents window will automatically fit its longest line, up to
6666
-- `max_width`
6767
fit_width = true,
6868

69-
-- max width of the ToC window when `fit_width = true` (in columns)
69+
-- Max width of the ToC window when `fit_width = true` (in columns)
7070
max_width = 30,
7171

72-
-- when set, the ToC window will always be this many cols wide.
72+
-- When set, the ToC window will always be this many cols wide.
7373
-- will override `fit_width` and ignore `max_width`
7474
fixed_width = nil,
7575

76-
-- enable `cursorline` in the ToC window, and sync the cursor position between ToC and content
76+
-- Enable `cursorline` in the ToC window, and sync the cursor position between ToC and content
7777
-- window
7878
sync_cursorline = true,
7979

8080
-- Enter a ToC window opened manually (any ToC window not opened by auto_toc)
8181
enter = true,
8282

83-
-- options for automatically opening/entering the ToC window
83+
-- Options for automatically opening/entering the ToC window
8484
auto_toc = {
85-
-- automatically open a ToC window when entering any `norg` buffer
85+
-- Automatically open a ToC window when entering any `norg` buffer
8686
open = false,
87-
-- enter an automatically opened ToC window
87+
-- Enter an automatically opened ToC window
8888
enter = false,
89-
-- automatically close the ToC window when there is no longer an open norg buffer
89+
-- Automatically close the ToC window when there is no longer an open norg buffer
9090
close = true,
91-
-- will exit nvim if the ToC is the last buffer on the screen, similar to help windows
91+
-- Will exit nvim if the ToC is the last buffer on the screen, similar to help windows
9292
exit_nvim = true,
9393
},
9494
}

0 commit comments

Comments
 (0)