diff options
| author | fdschmidt93 <39233597+fdschmidt93@users.noreply.github.com> | 2021-12-27 09:39:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-27 09:39:41 +0100 |
| commit | ebd2eb033750803d4ce5f4170369f7dcc24851dd (patch) | |
| tree | 264a496cd42c89af987dc376d7aea2c7d7083fb0 | |
| parent | 1849a8d701c24cb041848158dbf81591a182d87e (diff) | |
feat(diagnostics): workspace or document in title (#1619)
| -rw-r--r-- | lua/telescope/builtin/diagnostics.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/builtin/diagnostics.lua b/lua/telescope/builtin/diagnostics.lua index 2a26eaf..0fce711 100644 --- a/lua/telescope/builtin/diagnostics.lua +++ b/lua/telescope/builtin/diagnostics.lua @@ -102,7 +102,7 @@ diagnostics.get = function(opts) opts.path_display = vim.F.if_nil(opts.path_display, "hidden") pickers.new(opts, { - prompt_title = "Document Diagnostics", + prompt_title = opts.bufnr == nil and "Workspace Diagnostics" or "Document Diagnostics", finder = finders.new_table { results = locations, entry_maker = opts.entry_maker or make_entry.gen_from_diagnostics(opts), |
