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