summaryrefslogtreecommitdiff
path: root/lua/telescope/make_entry.lua
diff options
context:
space:
mode:
authorSenghan Bright <senghan.bright@deltaprojects.com>2020-09-23 06:20:38 +0200
committerGitHub <noreply@github.com>2020-09-23 00:20:38 -0400
commit203c696230cb00ffa0225c0bbc7ac96ec95273bb (patch)
tree4748d1efd4fe41198be5939bac9c3a0a7944998e /lua/telescope/make_entry.lua
parent7015596711323127fd11c6f53e3f1fb3a51ed18e (diff)
fix: small fixes from sunjon (#107)
* Don't execute `command` if target buffer is already loaded in window. * Print node_text before entry.kind in ordinal string. * Add new builtin for listing and reloading Lua modules. * Revert "Add new builtin for listing and reloading Lua modules." This reverts commit 65d9d0294eae92b347b38b8dcf807fbcdd5783fe.
Diffstat (limited to 'lua/telescope/make_entry.lua')
-rw-r--r--lua/telescope/make_entry.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/make_entry.lua b/lua/telescope/make_entry.lua
index 3077661..3ec663b 100644
--- a/lua/telescope/make_entry.lua
+++ b/lua/telescope/make_entry.lua
@@ -268,7 +268,7 @@ function make_entry.gen_from_treesitter(opts)
valid = true,
value = entry.node,
- ordinal = entry.kind .. " " .. node_text,
+ ordinal = string.format("%s [%s]", node_text, entry.kind),
display = make_display,
node_text = node_text,