From f0db7d3a5997cbd7e60638a071c1b661a854dfc6 Mon Sep 17 00:00:00 2001 From: Luke Kershaw <35707277+l-kershaw@users.noreply.github.com> Date: Sun, 19 Sep 2021 19:38:00 +0100 Subject: feat: `truncate` option for `path_display` (#1254) --- lua/telescope/make_entry.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lua/telescope/make_entry.lua') 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 -- cgit v1.2.3