(feat) add filename edit/lock icons provider (#253)

* (feat) add filename edit/lock icons provider

* Update statusline.lua

Co-authored-by: Sage Baram <sagebaram@gamil.com>
Co-authored-by: siduck76 <siduck13@gmail.com>
This commit is contained in:
Sage Baram 2021-08-14 21:26:34 +03:00 committed by GitHub
parent ebdcd4cae1
commit ea0a221230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -44,7 +44,10 @@ gls.left[3] = {
gls.left[4] = { gls.left[4] = {
FileName = { FileName = {
provider = {"FileName"}, provider = function()
local fileinfo = require('galaxyline.provider_fileinfo')
return fileinfo.get_current_file_name("", "")
end,
condition = condition.buffer_not_empty, condition = condition.buffer_not_empty,
highlight = {colors.white, colors.lightbg}, highlight = {colors.white, colors.lightbg},
separator = right_separator, separator = right_separator,