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/builtins/init.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/builtins/init.lua')
-rw-r--r-- | lua/core/builtins/init.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lua/core/builtins/init.lua b/lua/core/builtins/init.lua new file mode 100644 index 00000000..32f96af5 --- /dev/null +++ b/lua/core/builtins/init.lua @@ -0,0 +1,29 @@ +local M = {} + +local builtins = { + "keymappings", + "core.which-key", + "core.gitsigns", + "core.compe", + "core.dashboard", + "core.dap", + "core.terminal", + "core.telescope", + "core.treesitter", + "core.nvimtree", + "core.project", + "core.bufferline", + "core.autopairs", + "core.comment", + "core.lspinstall", + "core.lualine", +} + +function M.config(config) + for _, builtin_path in ipairs(builtins) do + local builtin = require(builtin_path) + builtin.config(config) + end +end + +return M |