summaryrefslogtreecommitdiff
path: root/lua/telescope/make_entry.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/make_entry.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/make_entry.lua')
-rw-r--r--lua/telescope/make_entry.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/make_entry.lua b/lua/telescope/make_entry.lua
index 4fee48d..9c3ab14 100644
--- a/lua/telescope/make_entry.lua
+++ b/lua/telescope/make_entry.lua
@@ -1,6 +1,7 @@
local entry_display = require('telescope.pickers.entry_display')
local path = require('telescope.path')
local utils = require('telescope.utils')
+local strings = require('plenary.strings')
local Path = require('plenary.path')
@@ -444,7 +445,7 @@ function make_entry.gen_from_buffer(opts)
local icon_width = 0
if not disable_devicons then
local icon, _ = utils.get_devicons('fname', disable_devicons)
- icon_width = utils.strdisplaywidth(icon)
+ icon_width = strings.strdisplaywidth(icon)
end
local displayer = entry_display.create {