Show files are executable in statusline

This commit is contained in:
2026-05-20 11:36:11 +01:00
parent e6a9c32505
commit 80a500561b

View File

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