diff options
| author | Simon Hauser <simon.hauser@helsinki-systems.de> | 2022-07-07 08:27:46 +0200 |
|---|---|---|
| committer | Simon Hauser <simon.hauser@helsinki-systems.de> | 2022-07-07 08:27:46 +0200 |
| commit | f838695459d75a889ae8d96e370957f0f675902a (patch) | |
| tree | 886426677b34edaa04dad95b33a2dc7e3514b8cb /lua/telescope/builtin/__diagnostics.lua | |
| parent | 8fe2dde6560667217682b22d77e1e719b7156cda (diff) | |
chore: reformat with stylua 0.14.0
Diffstat (limited to 'lua/telescope/builtin/__diagnostics.lua')
| -rw-r--r-- | lua/telescope/builtin/__diagnostics.lua | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/lua/telescope/builtin/__diagnostics.lua b/lua/telescope/builtin/__diagnostics.lua index 2614e36..ad50cfa 100644 --- a/lua/telescope/builtin/__diagnostics.lua +++ b/lua/telescope/builtin/__diagnostics.lua @@ -122,18 +122,20 @@ diagnostics.get = function(opts) end opts.path_display = vim.F.if_nil(opts.path_display, "hidden") - pickers.new(opts, { - 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), - }, - previewer = conf.qflist_previewer(opts), - sorter = conf.prefilter_sorter { - tag = "type", - sorter = conf.generic_sorter(opts), - }, - }):find() + pickers + .new(opts, { + 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), + }, + previewer = conf.qflist_previewer(opts), + sorter = conf.prefilter_sorter { + tag = "type", + sorter = conf.generic_sorter(opts), + }, + }) + :find() end local function apply_checks(mod) |
