add better way to change default options

check http://localhost:3000/config/Custom%20config#change-default-options
This commit is contained in:
siduck 2022-04-28 04:03:48 +05:30
parent 6750dee431
commit db18d5f356
2 changed files with 3 additions and 7 deletions

View File

@ -5,9 +5,9 @@ local M = {}
M.options = { M.options = {
path = "", -- path to file that overrides core.options -- load your options here or load module with options1
user = function() end,
-- NvChad options
nvChad = { nvChad = {
-- updater -- updater
update_url = "https://github.com/NvChad/NvChad", update_url = "https://github.com/NvChad/NvChad",

View File

@ -82,8 +82,4 @@ vim.schedule(function()
end) end)
-- load user options if the file exists -- load user options if the file exists
require("core.utils").load_config().options.user()
local load_ifExists = require("core.utils").load_ifExists
local user_options = require("core.utils").load_config().options.path
load_ifExists(user_options)