Skip to content

Commit

Permalink
feat(config.lua): add norg_version, bump version to 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Apr 19, 2023
1 parent e5d7fbb commit 8d76723
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion lua/neorg/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ neorg.configuration = {
manual = nil,
arguments = {},

version = "1.0.0",
norg_version = "1.1.1",
version = "3.0.0",

neovim_version = (function()
require("neorg.external.helpers")

Expand Down
9 changes: 5 additions & 4 deletions lua/neorg/modules/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ neorg.modules.module_base = {
-- Every module can expose any set of information it sees fit through the public field
-- All functions and variables declared in this table will be visible to any other module loaded
public = {
-- Current neorg version. Your module will use this version if not specified, but you can override it.
-- Overriding it will mean that your module is only compatible with the overriden neorg version
-- E.g: setting version = "1.3.0" will mean that your module requires norg 1.3.0+ to operate
version = require("neorg.config").version,
-- Current Norg version that this module supports.
-- Your module will use this version if not specified, but you can override it.
-- Overriding it will mean that your module is only compatible with the overriden Norg revision.
-- E.g: setting version = "1.0.0" will mean that your module requires Norg 1.0.0+ to operate
version = require("neorg.config").norg_version,
},

-- Configuration for the module
Expand Down

0 comments on commit 8d76723

Please sign in to comment.