Skip to content

Commit bc1c96a

Browse files
Add typing for default config
1 parent cd03f84 commit bc1c96a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lua/orgmode/config/defaults.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
return {
1+
---@class DefaultConfig
2+
local DefaultConfig = {
23
org_agenda_files = '',
34
org_default_notes_file = '',
45
org_todo_keywords = { 'TODO', '|', 'DONE' },
@@ -169,3 +170,5 @@ return {
169170
config_path = '$HOME/.emacs.d/init.el',
170171
},
171172
}
173+
174+
return DefaultConfig

lua/orgmode/config/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ local defaults = require('orgmode.config.defaults')
44
---@type table<string, MapEntry>
55
local mappings = require('orgmode.config.mappings')
66

7-
---@class Config
7+
---@class Config:DefaultConfig
88
---@field opts table
99
---@field todo_keywords table
1010
local Config = {}

0 commit comments

Comments
 (0)