summaryrefslogtreecommitdiff
path: root/lua/telescope/builtin
diff options
context:
space:
mode:
Diffstat (limited to 'lua/telescope/builtin')
-rw-r--r--lua/telescope/builtin/git.lua3
-rw-r--r--lua/telescope/builtin/lsp.lua3
2 files changed, 4 insertions, 2 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
diff --git a/lua/telescope/builtin/lsp.lua b/lua/telescope/builtin/lsp.lua
index 532f221..8bda217 100644
--- a/lua/telescope/builtin/lsp.lua
+++ b/lua/telescope/builtin/lsp.lua
@@ -5,6 +5,7 @@ local make_entry = require('telescope.make_entry')
local pickers = require('telescope.pickers')
local entry_display = require('telescope.pickers.entry_display')
local utils = require('telescope.utils')
+local strings = require('plenary.strings')
local a = require('plenary.async_lib')
local async, await = a.async, a.await
local channel = a.util.channel
@@ -172,7 +173,7 @@ lsp.code_actions = function(opts)
}
for key, value in pairs(widths) do
- widths[key] = math.max(value, utils.strdisplaywidth(entry[key]))
+ widths[key] = math.max(value, strings.strdisplaywidth(entry[key]))
end
table.insert(results, entry)