summaryrefslogtreecommitdiff
path: root/lua/telescope/builtin/git.lua
diff options
context:
space:
mode:
authorJINNOUCHI Yasushi <me@delphinus.dev>2021-06-15 03:47:33 +0900
committerGitHub <noreply@github.com>2021-06-14 20:47:33 +0200
commit0c1bc129da3f684b04d72530dddaedb5255f12ef (patch)
tree110622ddcdd5faaef686fc87c23a01300626f155 /lua/telescope/builtin/git.lua
parent398a0d391aa2afcda1521a8e86b820ffb599b60b (diff)
chore: use plenary.strings and remove strings functions from utils (#690)
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
Diffstat (limited to 'lua/telescope/builtin/git.lua')
-rw-r--r--lua/telescope/builtin/git.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/builtin/git.lua b/lua/telescope/builtin/git.lua
index 0a2d5dc..418379d 100644
--- a/lua/telescope/builtin/git.lua
+++ b/lua/telescope/builtin/git.lua
@@ -6,6 +6,7 @@ local pickers = require('telescope.pickers')
local previewers = require('telescope.previewers')
local utils = require('telescope.utils')
local entry_display = require('telescope.pickers.entry_display')
+local strings = require('plenary.strings')
local conf = require('telescope.config').values
@@ -138,7 +139,7 @@ git.branches = function(opts)
entry.name = string.sub(entry.refname, string.len(prefix)+1)
for key, value in pairs(widths) do
- widths[key] = math.max(value, utils.strdisplaywidth(entry[key] or ''))
+ widths[key] = math.max(value, strings.strdisplaywidth(entry[key] or ''))
end
if string.len(entry.upstream) > 0 then
widths.upstream_indicator = 2