feat: workspace diagnostics, jump to and improved styling (#599)
Changes: `Telescope lsp_diagnostics` is now `Telescope lsp_document_diagnostics` New: `Telescope lsp_workspace_diagnostics` Co-authored-by: Fabian David Schmidt <fabian.david.schmidt@hotmail.com> Co-authored-by: elianiva <dicha.arkana03@gmail.com>
This commit is contained in:
@@ -198,8 +198,9 @@ lsp.diagnostics = function(opts)
|
||||
return
|
||||
end
|
||||
|
||||
opts.hide_filename = utils.get_default(opts.hide_filename, true)
|
||||
pickers.new(opts, {
|
||||
prompt_title = 'LSP Diagnostics',
|
||||
prompt_title = 'LSP Document Diagnostics',
|
||||
finder = finders.new_table {
|
||||
results = locations,
|
||||
entry_maker = opts.entry_maker or make_entry.gen_from_lsp_diagnostics(opts)
|
||||
@@ -212,6 +213,14 @@ lsp.diagnostics = function(opts)
|
||||
}):find()
|
||||
end
|
||||
|
||||
lsp.workspace_diagnostics = function(opts)
|
||||
opts = utils.get_default(opts, {})
|
||||
opts.hide_filename = utils.get_default(opts.hide_filename, false)
|
||||
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user