2021-07-19 22:50:07 -04: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-04 22:14:01 -03:00
|
|
|
require "default-config"
|
2021-07-19 22:50:07 -04:00
|
|
|
local status_ok, error = pcall(vim.cmd, "luafile ~/.config/lvim/lv-config.lua")
|
2021-07-10 03:19:32 -04:00
|
|
|
if not status_ok then
|
|
|
|
print "something is wrong with your lv-config"
|
2021-07-14 12:36:57 +08:00
|
|
|
print(error)
|
2021-07-10 03:19:32 -04:00
|
|
|
end
|
2021-07-18 20:08:14 +02:00
|
|
|
|
2021-07-18 19:49:41 +02:00
|
|
|
require "keymappings"
|
2021-07-18 20:08:14 +02:00
|
|
|
|
|
|
|
local plugins = require "plugins"
|
|
|
|
local plugin_loader = require("plugin-loader").init()
|
|
|
|
plugin_loader:load { plugins, O.user_plugins }
|
2021-07-08 23:12:48 +02:00
|
|
|
vim.g.colors_name = O.colorscheme -- Colorscheme must get called after plugins are loaded or it will break new installs.
|
2021-07-23 19:29:44 +00:00
|
|
|
vim.cmd("colorscheme " .. O.colorscheme)
|
2021-07-18 20:08:14 +02:00
|
|
|
|
2021-07-10 03:19:32 -04:00
|
|
|
require "settings"
|
2021-07-04 22:14:01 -03:00
|
|
|
require "lv-utils"
|
2021-07-10 03:19:32 -04:00
|
|
|
|
2021-07-11 02:04:20 +04:30
|
|
|
-- TODO: these guys need to be in language files
|
2021-07-07 02:33:05 -04:00
|
|
|
-- require "lsp"
|
|
|
|
-- if O.lang.emmet.active then
|
|
|
|
-- require "lsp.emmet-ls"
|
|
|
|
-- end
|
|
|
|
-- if O.lang.tailwindcss.active then
|
2021-07-07 21:57:36 -04:00
|
|
|
-- require "lsp.tailwind
|