ojroques / nvim-lspfuzzy

A Neovim plugin to make the LSP client use FZF
BSD 2-Clause "Simplified" License
316 stars 11 forks source link

Is able to support fuzzy finding of workspace symbols ? #3

Closed zanglg closed 3 years ago

zanglg commented 3 years ago

List all the workspace symbols, and searching on the fly.

ojroques commented 3 years ago

Yes it should support it, see Supported LSP methods.

If nothing appears it may be that your LSP server doesn't support that method. Let me know if it does support the method but the plugin still fails to print anything.

zanglg commented 3 years ago

I'm using clangd with nvim-lsp, I notice clangd support workspace/symbol, but I can only search with a concrete symbol。 calling vim.lsp.buf.workspace_symbol() give me a pattern to type, not listing all the symbols.

ojroques commented 3 years ago

But when you make a query the results are displayed in fzf right?

It's due to how Neovim LSP workspace symbol method works, see the doc:

Unfortunately you cannot call workspace_symbol() without argument yet. So there isn't really a way to filter all symbols through FZF at the moment, sorry.

zanglg commented 3 years ago

That's it. It is really not a nvim-lspfuzzy issue. closed. thanks again.