diff options
| author | tamago324 <tamago_pad@yahoo.co.jp> | 2020-12-28 01:15:52 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-27 17:15:52 +0100 |
| commit | e555cd375f6c1e384a1c39a9c7c445a1c3aff8e0 (patch) | |
| tree | 673da674f50d4bc3a39594353d044d65662770bf /lua/telescope/builtin/lsp.lua | |
| parent | 3e884e863a37644838037ef5110be6678533667b (diff) | |
feat: all entry_makers are now overridable and icons for builtin.buffers (#364)
Diffstat (limited to 'lua/telescope/builtin/lsp.lua')
| -rw-r--r-- | lua/telescope/builtin/lsp.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/telescope/builtin/lsp.lua b/lua/telescope/builtin/lsp.lua index 3d135dc..4a373b1 100644 --- a/lua/telescope/builtin/lsp.lua +++ b/lua/telescope/builtin/lsp.lua @@ -30,7 +30,7 @@ lsp.references = function(opts) prompt_title = 'LSP References', finder = finders.new_table { results = locations, - entry_maker = make_entry.gen_from_quickfix(opts), + entry_maker = opts.entry_maker or make_entry.gen_from_quickfix(opts), }, previewer = conf.qflist_previewer(opts), sorter = conf.generic_sorter(opts), @@ -60,7 +60,7 @@ lsp.document_symbols = function(opts) prompt_title = 'LSP Document Symbols', finder = finders.new_table { results = locations, - entry_maker = make_entry.gen_from_lsp_symbols(opts) + entry_maker = opts.entry_maker or make_entry.gen_from_lsp_symbols(opts) }, previewer = conf.qflist_previewer(opts), sorter = conf.generic_sorter(opts), @@ -174,7 +174,7 @@ lsp.workspace_symbols = function(opts) prompt_title = 'LSP Workspace Symbols', finder = finders.new_table { results = locations, - entry_maker = make_entry.gen_from_lsp_symbols(opts) + entry_maker = opts.entry_maker or make_entry.gen_from_lsp_symbols(opts) }, previewer = conf.qflist_previewer(opts), sorter = conf.generic_sorter(opts), |
