From 33aaabe672f120050fd34264719e27a9bf518f18 Mon Sep 17 00:00:00 2001 From: Shadman Date: Wed, 12 May 2021 15:27:37 +0600 Subject: [PATCH] Fix filename error message (#237) --- lua/lualine/components/filename.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/lualine/components/filename.lua b/lua/lualine/components/filename.lua index 18752b2..06cc622 100644 --- a/lua/lualine/components/filename.lua +++ b/lua/lualine/components/filename.lua @@ -25,8 +25,10 @@ FileName.new = function(self, options, child) end if new_instance.options.path == nil then new_instance.options.path = 0 end if new_instance.options.full_path or new_instance.options.shorten then - vim.api.nvim_err_writeln( - [[ filetype component configuration changed, see :h lualine_custom_options ]]) + vim.schedule(function() + vim.api.nvim_err_writeln( + [[Lualine: filename component configuration changed, see :h lualine_custom_options ]]) + end) end return new_instance