chore: use plenary.strings and remove strings functions from utils (#690)

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
This commit is contained in:
JINNOUCHI Yasushi
2021-06-15 03:47:33 +09:00
committed by GitHub
parent 398a0d391a
commit 0c1bc129da
6 changed files with 25 additions and 139 deletions

View File

@@ -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 {