Skip to content

Commit

Permalink
chore: check for neovim version on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Jul 8, 2024
1 parent c916501 commit c5844ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/neorg/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
--- @brief ]]

local neorg = require("neorg.core")
local config, log, modules = neorg.config, neorg.log, neorg.modules
local config, log, modules, utils = neorg.config, neorg.log, neorg.modules, neorg.utils

--- @module "neorg.core.config"

Expand All @@ -12,6 +12,9 @@ local config, log, modules = neorg.config, neorg.log, neorg.modules
--- @see config.user_config
--- @see neorg.configuration.user
function neorg.setup(cfg)
-- Ensure that we are running Neovim 0.10+
assert(utils.is_minimum_version(0, 10, 0), "Neorg requires at least Neovim version 0.10 to operate!")

-- If the user supplied no configuration then generate a default one (assume the user wants the defaults)
cfg = cfg or {
load = {
Expand Down

0 comments on commit c5844ca

Please sign in to comment.