From 80a500561b4962c2891f4e968206b6158b686b9a Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Wed, 20 May 2026 11:36:11 +0100 Subject: [PATCH] Show files are executable in statusline --- plugin/statusline.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/statusline.lua b/plugin/statusline.lua index 03cd656..6d31e8e 100644 --- a/plugin/statusline.lua +++ b/plugin/statusline.lua @@ -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