mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
60c7ad77fd
* perf: lazy load most plugins
* fix(lazy): suggested fixes for pref/lazyloading branch (#3754)
fix(lazy): Suggested fixes from previous comments
fix(lazy): applying suggestions from code review
Co-authored-by: LostNeophyte <lostneophyte@tuta.io>
Co-authored-by: Pratyush Bharati <pbharati@Pratyushs-MacBook-Pro.local>
Co-authored-by: LostNeophyte <lostneophyte@tuta.io>
* chore: format
* move lazy utils to modules.lua
* simplify telescope actions
* refactor: cmp_window local name
* feat: more lazy loading cmds
* refactor(cmp): minor clean up
* perf: set lazy loading by default
* refactor(alpha): remove broken lazy load
* revert: explictily set lazy loading
This reverts commit ba38193e4e
.
* test: enable lazy-loading for bigfile
* perf: defer projects and alpha to VimEnter
* refactor(bufferline): add comment
* perf: better lazy load dap/dapui
* perf: lazy load ts-commentstring with Comment.nvim pre_hook
---------
Co-authored-by: pr-313 <46706232+pr-313@users.noreply.github.com>
Co-authored-by: Pratyush Bharati <pbharati@Pratyushs-MacBook-Pro.local>
Co-authored-by: opalmay <opal.mizrahi2@gmail.com>
Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
25 lines
630 B
Lua
25 lines
630 B
Lua
local base_dir = vim.env.LUNARVIM_BASE_DIR
|
|
or (function()
|
|
local init_path = debug.getinfo(1, "S").source
|
|
return init_path:sub(2):match("(.*[/\\])"):sub(1, -2)
|
|
end)()
|
|
|
|
if not vim.tbl_contains(vim.opt.rtp:get(), base_dir) then
|
|
vim.opt.rtp:append(base_dir)
|
|
end
|
|
|
|
require("lvim.bootstrap"):init(base_dir)
|
|
|
|
require("lvim.config"):load()
|
|
|
|
local plugins = require "lvim.plugins"
|
|
|
|
require("lvim.plugin-loader").load { plugins, lvim.plugins }
|
|
|
|
require("lvim.core.theme").setup()
|
|
|
|
local Log = require "lvim.core.log"
|
|
Log:debug "Starting LunarVim"
|
|
|
|
local commands = require "lvim.core.commands"
|
|
commands.load(commands.defaults)
|