mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(config): custom module location for config
This commit is contained in:
parent
060f56d6d4
commit
139bf1333a
1 changed files with 4 additions and 1 deletions
|
|
@ -20,6 +20,9 @@ local defaults = {
|
||||||
-- lazyvim.config.options can't be configured here since that's loaded before lazyvim setup
|
-- lazyvim.config.options can't be configured here since that's loaded before lazyvim setup
|
||||||
-- if you want to disable loading options, add `package.loaded["lazyvim.config.options"] = true` to the top of your init.lua
|
-- if you want to disable loading options, add `package.loaded["lazyvim.config.options"] = true` to the top of your init.lua
|
||||||
},
|
},
|
||||||
|
-- module containing autocmds, keymaps and options
|
||||||
|
---@type string
|
||||||
|
modname = "config",
|
||||||
news = {
|
news = {
|
||||||
-- When enabled, NEWS.md will be shown when changed.
|
-- When enabled, NEWS.md will be shown when changed.
|
||||||
-- This only contains big new features and breaking changes.
|
-- This only contains big new features and breaking changes.
|
||||||
|
|
@ -249,7 +252,7 @@ function M.load(name)
|
||||||
if M.defaults[name] or name == "options" then
|
if M.defaults[name] or name == "options" then
|
||||||
_load("lazyvim.config." .. name)
|
_load("lazyvim.config." .. name)
|
||||||
end
|
end
|
||||||
_load("config." .. name)
|
_load(M.modname .. "." .. name)
|
||||||
if vim.bo.filetype == "lazy" then
|
if vim.bo.filetype == "lazy" then
|
||||||
-- HACK: LazyVim may have overwritten options of the Lazy ui, so reset this here
|
-- HACK: LazyVim may have overwritten options of the Lazy ui, so reset this here
|
||||||
vim.cmd([[do VimResized]])
|
vim.cmd([[do VimResized]])
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue