diff options
| author | Alex Mastro <opsound@gmail.com> | 2021-05-30 01:54:17 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-30 10:54:17 +0200 |
| commit | d2b3b080777099d89f396fe949d30e6eceeb4370 (patch) | |
| tree | 82e388b0613da90a30f8ecfd4a18049a7cc399ed /lua | |
| parent | ec8cf12cdc258ae5f0f3500d6d6a9a8d54bdd8ef (diff) | |
fix: attempt to concatenate when entry.kind == nil or or symbol_type == nil (#853)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/make_entry.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/telescope/make_entry.lua b/lua/telescope/make_entry.lua index 39106e0..2339fb6 100644 --- a/lua/telescope/make_entry.lua +++ b/lua/telescope/make_entry.lua @@ -424,7 +424,7 @@ function make_entry.gen_from_lsp_symbols(opts) if not opts.ignore_filename and filename then ordinal = filename .. " " end - ordinal = ordinal .. symbol_name .. " " .. symbol_type + ordinal = ordinal .. symbol_name .. " " .. (symbol_type or "unknown") return { valid = true, @@ -562,7 +562,7 @@ function make_entry.gen_from_treesitter(opts) value = entry.node, kind = entry.kind, - ordinal = node_text .. " " .. entry.kind, + ordinal = node_text .. " " .. (entry.kind or "unknown"), display = make_display, node_text = node_text, |
