Show files are executable in statusline
This commit is contained in:
@@ -89,11 +89,12 @@ local function generic(group, name)
|
||||
line = line .. '%#StatusLineDark#'
|
||||
end
|
||||
line = line .. ' %<%f'
|
||||
-- Display readonly and nomodifiable if set.
|
||||
-- Display readonly, nomodifiable, and executable if set.
|
||||
line = line
|
||||
.. '%#StatusLineDark#'
|
||||
.. '%{&readonly ? " 🔒" : ""}'
|
||||
.. '%{&modifiable ? "" : " ⛔"}'
|
||||
.. '%{getfperm(expand("%:p"))[2] ==# "x" ? " " : ""}'
|
||||
-- Display filetype if set.
|
||||
line = line .. '%=' .. '%#StatusLineDark# %{&filetype} '
|
||||
-- Display fileencoding if not utf-8 and fileformat if not unix with dusk
|
||||
|
||||
Reference in New Issue
Block a user