add better way to change default options
check http://localhost:3000/config/Custom%20config#change-default-options
This commit is contained in:
parent
6750dee431
commit
db18d5f356
2 changed files with 3 additions and 7 deletions
|
@ -5,9 +5,9 @@ local M = {}
|
|||
|
||||
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 = {
|
||||
-- updater
|
||||
update_url = "https://github.com/NvChad/NvChad",
|
||||
|
|
|
@ -82,8 +82,4 @@ vim.schedule(function()
|
|||
end)
|
||||
|
||||
-- load user options if the file exists
|
||||
|
||||
local load_ifExists = require("core.utils").load_ifExists
|
||||
local user_options = require("core.utils").load_config().options.path
|
||||
|
||||
load_ifExists(user_options)
|
||||
require("core.utils").load_config().options.user()
|
||||
|
|
Loading…
Reference in a new issue