[Mini.extra] LSP Workspace Symbols being limited #749
-
Hello there. I'm working with the Linux kernel. I went to do a workspace symbols search today and I think 'Pick lsp' is limited the results from the LSP. Per the docs
When I open with a empty string tho, it seems to be limited to 100. I'm not sure if this is a mini issue or is this an LSP limitation? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! I'd assume you are using |
Beta Was this translation helpful? Give feedback.
Hi!
I'd assume you are using
clangd
. It has--limit-results
option for "Limit the number of results returned by clangd. 0 means no limit (default=100)." So if you want a bigger number, supply a different value during LSP server initialization. For example, if done directly (not with 'nvim-lspconfig'):vim.lsp.start({ name = 'clangd', cmd = { 'clangd', '--limit-results=1000' }, root_dir = vim.fn.getcwd()})