From eb9f33b3457609fcbbbe15d9e8771c6fbe3aa4a8 Mon Sep 17 00:00:00 2001 From: bhagwan Date: Wed, 2 Mar 2022 10:02:53 -0800 Subject: [PATCH] added `cwd` header display to LSP providers --- lua/fzf-lua/providers/lsp.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/fzf-lua/providers/lsp.lua b/lua/fzf-lua/providers/lsp.lua index dc8a072..0514439 100644 --- a/lua/fzf-lua/providers/lsp.lua +++ b/lua/fzf-lua/providers/lsp.lua @@ -294,6 +294,7 @@ end local function fzf_lsp_locations(opts) opts = normalize_lsp_opts(opts, config.globals.lsp) if not opts then return end + opts = core.set_header(opts, 2) opts = core.set_fzf_field_index(opts) if opts.force_uri == nil then opts.force_uri = true end opts = set_lsp_fzf_fn(opts) @@ -632,6 +633,7 @@ M.diagnostics = function(opts) end)() end + opts = core.set_header(opts, 2) opts = core.set_fzf_field_index(opts) if opts.force_uri == nil then opts.force_uri = true end return core.fzf_files(opts)