diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2021-12-10 17:49:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-10 17:49:06 +0100 |
| commit | 56325fefb21a8a9331a25e294c074887dfb2a60c (patch) | |
| tree | 1b0c08e44dc437ed96824eae941a991a6a204ac1 /lua/telescope/builtin/lsp.lua | |
| parent | 61240ac75a93b3cdafb4325ab4e9d407f83965f4 (diff) | |
feat: migrate to Telescope diagnostics using vim.diagnostic (#1553)
Diffstat (limited to 'lua/telescope/builtin/lsp.lua')
| -rw-r--r-- | lua/telescope/builtin/lsp.lua | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/lua/telescope/builtin/lsp.lua b/lua/telescope/builtin/lsp.lua index 149cfcb..3992ba6 100644 --- a/lua/telescope/builtin/lsp.lua +++ b/lua/telescope/builtin/lsp.lua @@ -405,37 +405,6 @@ lsp.dynamic_workspace_symbols = function(opts) }):find() end -lsp.diagnostics = function(opts) - local locations = utils.diagnostics_to_tbl(opts) - - if vim.tbl_isempty(locations) then - print "No diagnostics found" - return - end - - opts.path_display = utils.get_default(opts.path_display, "hidden") - pickers.new(opts, { - prompt_title = "LSP Document Diagnostics", - finder = finders.new_table { - results = locations, - entry_maker = opts.entry_maker or make_entry.gen_from_lsp_diagnostics(opts), - }, - previewer = conf.qflist_previewer(opts), - sorter = conf.prefilter_sorter { - tag = "type", - sorter = conf.generic_sorter(opts), - }, - }):find() -end - -lsp.workspace_diagnostics = function(opts) - opts = utils.get_default(opts, {}) - opts.path_display = utils.get_default(opts.path_display, {}) - opts.prompt_title = "LSP Workspace Diagnostics" - opts.get_all = true - lsp.diagnostics(opts) -end - local function check_capabilities(feature) local clients = vim.lsp.buf_get_clients(0) |
