diff options
author | max397574 <[email protected]> | 2021-10-23 21:10:34 +0200 |
---|---|---|
committer | max397574 <[email protected]> | 2021-10-23 21:10:34 +0200 |
commit | a936538e5ae9ef3815b4416d552650d5f5d217be (patch) | |
tree | fe33582f1ae59e13368b93d394791e0cb1e3f881 /lua | |
parent | 82730be5029a3aee00a15c48dc5449542a181174 (diff) |
fix(plugin): prevent function from loading twice
Diffstat (limited to 'lua')
-rw-r--r-- | lua/startup.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/startup.lua b/lua/startup.lua index c68771d..5334df6 100644 --- a/lua/startup.lua +++ b/lua/startup.lua @@ -193,6 +193,10 @@ function M.mapping_names(mappings) end function M.display() + if vim.g.startup_nvim_displayed then + return + end + vim.g.startup_nvim_displayed = true vim.schedule(function() local padding_nr = 1 U.set_buf_options() |