diff options
author | Luc Sinet <[email protected]> | 2021-08-25 07:47:48 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-25 07:47:48 +0200 |
commit | 00b895d9e9577f084cf577a07f9d6d6e1f7a4cac (patch) | |
tree | 1139617d5b3acd56f221f24ce301f51535267bdc /lua/core/autocmds.lua | |
parent | f6c706ac0c346491cc79bdea46a52ee7a8694e0d (diff) |
[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
Diffstat (limited to 'lua/core/autocmds.lua')
-rw-r--r-- | lua/core/autocmds.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/core/autocmds.lua b/lua/core/autocmds.lua index 91278544..91ec70b5 100644 --- a/lua/core/autocmds.lua +++ b/lua/core/autocmds.lua @@ -1,4 +1,5 @@ local autocommands = {} +local config = require "config" lvim.autocommands = { _general_settings = { @@ -32,7 +33,7 @@ lvim.autocommands = { "*", "setlocal formatoptions-=c formatoptions-=r formatoptions-=o", }, - { "BufWritePost", USER_CONFIG_PATH, "lua require('utils').reload_lv_config()" }, + { "BufWritePost", config.path, "lua require('utils').reload_lv_config()" }, { "FileType", "qf", |