diff options
author | max397574 <[email protected]> | 2021-11-15 21:49:20 +0100 |
---|---|---|
committer | max397574 <[email protected]> | 2021-11-15 21:49:20 +0100 |
commit | c716e655afaf5ec76103ce7af95cc3cf5531bf9e (patch) | |
tree | e6d2b2465556cf20ff1a924f4c687146944bce4e | |
parent | 71a8cb85d1b4ca642584915275cc0e04d2edc3ca (diff) |
feat(init): ✨better completition and command
-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 0d60a92..cbc3bb9 100644 --- a/lua/startup/init.lua +++ b/lua/startup/init.lua @@ -24,6 +24,7 @@ local current_section = "" local opts = { noremap = true, silent = true } local settings = require("startup.config") +---@type startup.utils local utils = require("startup.utils") ---creates a mapping for the current buffer @@ -344,6 +345,7 @@ function startup.setup(update) startup_nvim_loaded = true settings = vim.tbl_deep_extend("force", settings, update or {}) startup.settings = settings + vim.cmd("command! Startup :lua require('startup').display()") vim.cmd( [[autocmd VimEnter * lua if vim.fn.argc() == 0 then require("startup").display() end]], [[autocmd BufRead * lua if vim.fn.argc() == 0 then require("startup").display() end]] |