mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-04 01:55:08 +02:00
Decoupling config from nvim (#1038)
This commit is contained in:
parent
acb6a7a2ce
commit
d02265175f
13 changed files with 63 additions and 39 deletions
14
init.lua
14
init.lua
|
@ -1,5 +1,17 @@
|
|||
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 ?
|
||||
require "default-config"
|
||||
local status_ok, error = pcall(vim.cmd, "luafile " .. CONFIG_PATH .. "/lv-config.lua")
|
||||
local status_ok, error = pcall(vim.cmd, "luafile ~/.config/lvim/lv-config.lua")
|
||||
if not status_ok then
|
||||
print "something is wrong with your lv-config"
|
||||
print(error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue