neovim: rewrite filename lualine module a bit

This commit is contained in:
2026-03-28 16:44:41 +03:00
parent b92750688e
commit 6c93258fc5

View File

@@ -84,11 +84,13 @@ local filename = {
return filename
end
local items = { icon, filename }
if modified then
return icon .. " " .. filename .. " " .. "[+]"
table.insert(items, "[+]")
end
return icon .. " " .. filename
return table.concat(items, " ")
end,
}