diff options
| author | JINNOUCHI Yasushi <me@delphinus.dev> | 2021-06-15 03:47:33 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-14 20:47:33 +0200 |
| commit | 0c1bc129da3f684b04d72530dddaedb5255f12ef (patch) | |
| tree | 110622ddcdd5faaef686fc87c23a01300626f155 /lua/telescope/builtin/lsp.lua | |
| parent | 398a0d391aa2afcda1521a8e86b820ffb599b60b (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/lsp.lua')
| -rw-r--r-- | lua/telescope/builtin/lsp.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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) |
