diff options
author | max397574 <[email protected]> | 2021-11-06 16:10:48 +0100 |
---|---|---|
committer | max397574 <[email protected]> | 2021-11-06 16:10:48 +0100 |
commit | 56e7c30c81660f936b10ecc2366082000869b063 (patch) | |
tree | b322c375b9f5235becce6d24c0d42ae078e02a13 | |
parent | efee522aa5c5b29a19a7c07d4868130089e0fdb8 (diff) |
feat(startup): ✨expose settings
-rw-r--r-- | lua/startup/init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/startup/init.lua b/lua/startup/init.lua index 19f69bd..603ae46 100644 --- a/lua/startup/init.lua +++ b/lua/startup/init.lua @@ -7,6 +7,7 @@ startup.sections = {} startup.section_highlights = {} startup.open_sections = {} startup.good_lines = {} +startup.settings = require"startup.config" local section_alignments = {} @@ -350,6 +351,7 @@ function startup.setup(update) end vim.g.startup_nvim_loaded = true settings = vim.tbl_deep_extend("force", settings, update or {}) + startup.settings = settings vim.cmd [[autocmd BufRead * lua if vim.fn.argc() == 0 then require("startup").display() end]] vim.cmd[[autocmd VimResized * lua if vim.bo.ft == "startup" then require"startup".redraw() end]] end |