diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2021-02-23 22:10:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-23 22:10:19 +0100 |
| commit | 4dd35ef0e154ab1836fc923a33196a4101a97a9c (patch) | |
| tree | 2bedff63705bf580139b52e64f23b7fde6c84b78 /lua/telescope/config.lua | |
| parent | 0a32b47f20b3509694c8cee35e2f77cd1c1a532f (diff) | |
feat: file browser & refresh interface (#290)
and more picker api stuff for sunjon. refresh is implemented for file_browser and git_status
Diffstat (limited to 'lua/telescope/config.lua')
| -rw-r--r-- | lua/telescope/config.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lua/telescope/config.lua b/lua/telescope/config.lua index 2f23fad..4b13e7a 100644 --- a/lua/telescope/config.lua +++ b/lua/telescope/config.lua @@ -54,11 +54,11 @@ function config.set_defaults(defaults) set("borderchars", { '─', '│', '─', '│', '╭', '╮', '╯', '╰'}) set("get_status_text", function(self) - return string.format( - "%s / %s", - (self.stats.processed or 0) - (self.stats.filtered or 0), - self.stats.processed or 0 - ) + local xx = (self.stats.processed or 0) - (self.stats.filtered or 0) + local yy = self.stats.processed or 0 + if xx == 0 and yy == 0 then return "" end + + return string.format("%s / %s", xx, yy) end) -- Builtin configuration |
