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