Closed sidkang closed 2 years ago
@sidkang Thanks for the suggestion. max_item_count
will be added soon.
Just read the nvim-cmp
doc, it seems there is already the count limit implemented in the framework, maybe the limit in this plugin can be just removed and added in the config. For reference, below are the relevant urls.
https://github.com/hrsh7th/nvim-cmp/blob/9a0c639ac2324e6e9ecc54dc22b1d32bb6c42ab9/lua/cmp/source.lua#L123 https://github.com/hrsh7th/nvim-cmp/blob/1cad1815e165c2b436f41a1ee20327701842a761/doc/cmp.txt#L513-L516
@sidkang You are right. It's removed.
First, Nice plugin. I just began to use this, it looks quite nice. I met a minor problem that If I'm not following the strict
L:B:C
pattern, the item available will not be refreshed to fetch the target account.expectation
For example, If I want to get
Assets:Receivable:Eason
and it is beyond the 10 first completion item, if I useARE
to find it. The is the current completion behavior in vscode-beancount plugin which I'm used to.If I want to use such way to get the completion, I think a simple approach could be allowing user to increase the limit. I tried the code below it seems worked.
As an amateur coder, I'm not quite good at this, maybe there are better ways to accomplish this.