Feat: Adding readonly to filestatus (#149)

This commit is contained in:
Shadman 2021-03-28 07:38:47 +06:00 committed by GitHub
parent a3037fbf0b
commit 78b8260084
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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