mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-27 11:19:02 +02:00
refactor: automatically load keymaps, autocmds and options
This commit is contained in:
parent
d224aea4a4
commit
a15f44eb89
6 changed files with 40 additions and 16 deletions
|
@ -1,15 +0,0 @@
|
|||
local M = {}
|
||||
|
||||
---@param opts? LazyVimSettings
|
||||
function M.setup(opts)
|
||||
if not package.loaded.lazy then
|
||||
require("lazyvim.config.lazy")
|
||||
end
|
||||
local settings = require("lazyvim.config.settings")
|
||||
package.loaded["lazyvim.config.settings"] = vim.tbl_deep_extend("force", settings, opts or {})
|
||||
require("lazyvim.config.options")
|
||||
require("lazyvim.config.autocmds")
|
||||
require("lazyvim.config.keymaps")
|
||||
end
|
||||
|
||||
return M
|
Loading…
Add table
Add a link
Reference in a new issue