summaryrefslogtreecommitdiff
path: root/lua/telescope/make_entry.lua
diff options
context:
space:
mode:
authorLuke Kershaw <35707277+l-kershaw@users.noreply.github.com>2021-09-19 19:38:00 +0100
committerGitHub <noreply@github.com>2021-09-19 20:38:00 +0200
commitf0db7d3a5997cbd7e60638a071c1b661a854dfc6 (patch)
tree77850c0c236a0db2010ce817ed92296308613083 /lua/telescope/make_entry.lua
parente53cf55225e30932237ed7bba5aa45c09eb08e87 (diff)
feat: `truncate` option for `path_display` (#1254)
Diffstat (limited to 'lua/telescope/make_entry.lua')
-rw-r--r--lua/telescope/make_entry.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/telescope/make_entry.lua b/lua/telescope/make_entry.lua
index bf0287c..917b6f8 100644
--- a/lua/telescope/make_entry.lua
+++ b/lua/telescope/make_entry.lua
@@ -330,6 +330,7 @@ end
function make_entry.gen_from_lsp_symbols(opts)
opts = opts or {}
+
local bufnr = opts.bufnr or vim.api.nvim_get_current_buf()
local display_items = {
@@ -932,6 +933,7 @@ end
function make_entry.gen_from_lsp_diagnostics(opts)
opts = opts or {}
+
local lsp_type_diagnostic = vim.lsp.protocol.DiagnosticSeverity
local signs