From 0c1bc129da3f684b04d72530dddaedb5255f12ef Mon Sep 17 00:00:00 2001 From: JINNOUCHI Yasushi Date: Tue, 15 Jun 2021 03:47:33 +0900 Subject: chore: use plenary.strings and remove strings functions from utils (#690) Co-authored-by: Simon Hauser --- lua/telescope/make_entry.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua/telescope/make_entry.lua') 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 { -- cgit v1.2.3