From 78b8260084a805e22b65b6c57a3be0c109c8544c Mon Sep 17 00:00:00 2001 From: Shadman Date: Sun, 28 Mar 2021 07:38:47 +0600 Subject: [PATCH] Feat: Adding readonly to filestatus (#149) --- lua/lualine/components/filename.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lualine/components/filename.lua b/lua/lualine/components/filename.lua index 6cf068a..27ebfb1 100644 --- a/lua/lualine/components/filename.lua +++ b/lua/lualine/components/filename.lua @@ -24,7 +24,7 @@ local function filename(options) if options.file_status then if vim.bo.modified then data = data .. '[+]' - elseif vim.bo.modifiable == false then + elseif vim.bo.modifiable == false or vim.bo.readonly == true then data = data .. '[-]' end end