From 56e7c30c81660f936b10ecc2366082000869b063 Mon Sep 17 00:00:00 2001 From: max397574 Date: Sat, 6 Nov 2021 16:10:48 +0100 Subject: =?UTF-8?q?feat(startup):=20=E2=9C=A8expose=20settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/startup/init.lua | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3