From ea0a221230532bfd2af0a516feb0dca53d62e5ba Mon Sep 17 00:00:00 2001 From: Sage Baram <50245184+JustSage@users.noreply.github.com> Date: Sat, 14 Aug 2021 21:26:34 +0300 Subject: [PATCH] (feat) add filename edit/lock icons provider (#253) * (feat) add filename edit/lock icons provider * Update statusline.lua Co-authored-by: Sage Baram Co-authored-by: siduck76 --- lua/plugins/statusline.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/plugins/statusline.lua b/lua/plugins/statusline.lua index e74bea9..5e0a282 100644 --- a/lua/plugins/statusline.lua +++ b/lua/plugins/statusline.lua @@ -44,7 +44,10 @@ gls.left[3] = { gls.left[4] = { FileName = { - provider = {"FileName"}, + provider = function() + local fileinfo = require('galaxyline.provider_fileinfo') + return fileinfo.get_current_file_name("", "") + end, condition = condition.buffer_not_empty, highlight = {colors.white, colors.lightbg}, separator = right_separator,