1
Fork 0

Fix nvim starter page displaying when arguments were passed

This commit is contained in:
prescientmoon 2024-04-29 01:58:15 +02:00
parent 44659f85fe
commit 6da8078cc3
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -126,6 +126,10 @@ end
M.refresh = function(buf_id) M.refresh = function(buf_id)
buf_id = buf_id or vim.api.nvim_get_current_buf() buf_id = buf_id or vim.api.nvim_get_current_buf()
if vim.api.nvim_buf_get_option(buf_id, "ft") ~= "starter" then
return
end
local config = M.config local config = M.config
-- Normalize certain config values -- Normalize certain config values