From 6da8078cc36d9fd407fddca1d65e1331ff669f71 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Mon, 29 Apr 2024 01:58:15 +0200 Subject: [PATCH] Fix nvim starter page displaying when arguments were passed --- home/features/neovim/config/lua/my/starter.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/features/neovim/config/lua/my/starter.lua b/home/features/neovim/config/lua/my/starter.lua index d52cd30..46dbe24 100644 --- a/home/features/neovim/config/lua/my/starter.lua +++ b/home/features/neovim/config/lua/my/starter.lua @@ -126,6 +126,10 @@ end M.refresh = function(buf_id) 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 -- Normalize certain config values