LunarVim/init.lua

37 lines
1 KiB
Lua
Raw Normal View History

2021-07-20 04:50:07 +02:00
vim.cmd [[
set packpath-=~/.config/nvim
set packpath-=~/.config/nvim/after
set packpath-=~/.local/share/nvim/site
set packpath^=~/.local/share/lunarvim/site
set packpath^=~/.config/lvim
set runtimepath-=~/.config/nvim
set runtimepath-=~/.config/nvim/after
set runtimepath^=~/.config/lvim
]]
-- vim.opt.rtp:append() instead of vim.cmd ?
2021-07-05 03:14:01 +02:00
require "default-config"
2021-07-20 04:50:07 +02:00
local status_ok, error = pcall(vim.cmd, "luafile ~/.config/lvim/lv-config.lua")
2021-07-10 09:19:32 +02:00
if not status_ok then
print "something is wrong with your lv-config"
print(error)
2021-07-10 09:19:32 +02:00
end
require "keymappings"
local plugins = require "plugins"
local plugin_loader = require("plugin-loader").init()
plugin_loader:load { plugins, O.user_plugins }
vim.g.colors_name = O.colorscheme -- Colorscheme must get called after plugins are loaded or it will break new installs.
2021-07-10 09:19:32 +02:00
require "settings"
2021-07-05 03:14:01 +02:00
require "lv-utils"
2021-07-10 09:19:32 +02:00
-- TODO: these guys need to be in language files
-- require "lsp"
-- if O.lang.emmet.active then
-- require "lsp.emmet-ls"
-- end
-- if O.lang.tailwindcss.active then
2021-07-08 03:57:36 +02:00
-- require "lsp.tailwind