feat: all entry_makers are now overridable and icons for builtin.buffers (#364)

This commit is contained in:
tamago324
2020-12-28 01:15:52 +09:00
committed by GitHub
parent 3e884e863a
commit e555cd375f
5 changed files with 46 additions and 17 deletions

View File

@@ -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),