From 3a17c8f05aae1f148b8af595b46fea18b74d0573 Mon Sep 17 00:00:00 2001 From: Tobias Schmitz Date: Sat, 18 Dec 2021 14:04:09 +0100 Subject: [PATCH] fix: don't hide readonly symbol when modified (#497) --- lua/lualine/components/filename.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/lualine/components/filename.lua b/lua/lualine/components/filename.lua index 2020e43..6eb1e50 100644 --- a/lua/lualine/components/filename.lua +++ b/lua/lualine/components/filename.lua @@ -63,7 +63,8 @@ M.update_status = function(self) if self.options.file_status then if vim.bo.modified then data = data .. self.options.symbols.modified - elseif vim.bo.modifiable == false or vim.bo.readonly == true then + end + if vim.bo.modifiable == false or vim.bo.readonly == true then data = data .. self.options.symbols.readonly end end