fix!: fix "Command X not found after loading gopher.nvim" (#100)

BREAKING CHANGE: now calling .setup is required
This commit is contained in:
Smirnov Oleksandr 2025-03-22 16:10:17 +02:00 committed by Oleksandr Smirnov
parent 969db908f8
commit acd4e6fc30
No known key found for this signature in database
4 changed files with 87 additions and 75 deletions

View file

@ -114,6 +114,10 @@ function config.setup(user_config)
["iferr"] = { _config.iferr, "table" },
["iferr.message"] = { _config.iferr.message, "string", true },
}
if _config.setup_commands then
require("gopher.commands").register()
end
end
---@return boolean