[Feature] Encapsulate config logic (#1338)

* Define core/builtins, streamline status_color interface

* Encapsulate configuration in its own module

* Add fallback to lv-config.lua

* Rectify settings loading order to allow overriding vim options

* Move default-config into config/ module

* replace uv.fs_stat with utils.is_file
This commit is contained in:
Luc Sinet 2021-08-25 07:47:48 +02:00 committed by GitHub
parent f6c706ac0c
commit 00b895d9e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 89 additions and 54 deletions

View file

@ -89,8 +89,10 @@ end
function utils.reload_lv_config()
require("core.lualine").config()
vim.cmd "source ~/.local/share/lunarvim/lvim/lua/settings.lua"
vim.cmd("source " .. USER_CONFIG_PATH)
local config = require "config"
config:load()
require("keymappings").setup() -- this should be done before loading the plugins
vim.cmd "source ~/.local/share/lunarvim/lvim/lua/plugins.lua"
local plugins = require "plugins"