Feat: Adding readonly to filestatus (#149)
This commit is contained in:
parent
a3037fbf0b
commit
78b8260084
|
@ -24,7 +24,7 @@ local function filename(options)
|
||||||
if options.file_status then
|
if options.file_status then
|
||||||
if vim.bo.modified then
|
if vim.bo.modified then
|
||||||
data = data .. '[+]'
|
data = data .. '[+]'
|
||||||
elseif vim.bo.modifiable == false then
|
elseif vim.bo.modifiable == false or vim.bo.readonly == true then
|
||||||
data = data .. '[-]'
|
data = data .. '[-]'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue