From 523962ae535c2e0d5bd8b68d174cc5d815b9c7f1 Mon Sep 17 00:00:00 2001 From: bhagwan Date: Wed, 8 Jun 2022 18:29:46 -0700 Subject: [PATCH] fix(lsp): symbol formatting on 'resume' --- lua/fzf-lua/providers/lsp.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/fzf-lua/providers/lsp.lua b/lua/fzf-lua/providers/lsp.lua index 002c9f8..7449ae3 100644 --- a/lua/fzf-lua/providers/lsp.lua +++ b/lua/fzf-lua/providers/lsp.lua @@ -431,7 +431,7 @@ M.document_symbols = function(opts) opts = set_lsp_fzf_fn(opts) if not opts.fzf_fn then return end if opts.symbol_style or opts.symbol_fmt then - gen_sym2style_map(opts) + opts.fn_pre_fzf = function() gen_sym2style_map(opts) end opts.fn_post_fzf = function() M._sym2style = nil end end return core.fzf_files(opts) @@ -448,7 +448,7 @@ M.workspace_symbols = function(opts) opts = set_lsp_fzf_fn(opts) if not opts.fzf_fn then return end if opts.symbol_style or opts.symbol_fmt then - gen_sym2style_map(opts) + opts.fn_pre_fzf = function() gen_sym2style_map(opts) end opts.fn_post_fzf = function() M._sym2style = nil end end return core.fzf_files(opts) @@ -841,7 +841,7 @@ M.live_workspace_symbols = function(opts) opts = core.set_fzf_field_index(opts) if opts.force_uri == nil then opts.force_uri = true end if opts.symbol_style or opts.symbol_fmt then - gen_sym2style_map(opts) + opts.fn_pre_fzf = function() gen_sym2style_map(opts) end opts.fn_post_fzf = function() M._sym2style = nil end end core.fzf_files(opts)