LunarVim/init.lua
kylo252 d01ba08eae
refactor: auto-generate language configuration (#1584)
Refactor the monolithic `lvim.lang` design into a more modular approach.

IMPORTANT: run `:LvimUpdate` in order to generate the new ftplugin template files.
2021-10-03 16:13:46 +02:00

26 lines
747 B
Lua

if os.getenv "LUNARVIM_RUNTIME_DIR" then
local path_sep = vim.loop.os_uname().version:match "Windows" and "\\" or "/"
vim.opt.rtp:append(os.getenv "LUNARVIM_RUNTIME_DIR" .. path_sep .. "lvim")
end
require("bootstrap"):init()
local config = require "config"
-- config:init()
config:load()
local plugins = require "plugins"
require("plugin-loader"):load { plugins, lvim.plugins }
local Log = require "core.log"
Log:debug "Starting LunarVim"
vim.g.colors_name = lvim.colorscheme -- Colorscheme must get called after plugins are loaded or it will break new installs.
vim.cmd("colorscheme " .. lvim.colorscheme)
local commands = require "core.commands"
commands.load(commands.defaults)
require("keymappings").setup()
require("lsp").setup()