nvim-cmp icon indicating copy to clipboard operation
nvim-cmp copied to clipboard

Documentation max width sometimes doesn't follow `window.documentation.max_width`

Open mbrc12 opened this issue 3 years ago • 4 comments

Please see the following screenshot of using rust_analyzer with nvim-cmp.

image

The command whose output is shown is lua =require("cmp.config").get().window

image

Seems like the max_width is indeed set properly, but the docs window is so big.

Many thanks for your help! Please let me know if this is a duplicate of any other issue or if I'm making a stupid mistake (likely).

Best, mbrc12

mbrc12 avatar Nov 29 '23 06:11 mbrc12

Related issues: https://github.com/hrsh7th/nvim-cmp/issues/1154 https://github.com/hrsh7th/nvim-cmp/issues/1673

Shougo avatar Nov 29 '23 07:11 Shougo

@Shougo these appear to be for the completion menu, and not the documentation window, if I am not mistaken? Thanks for pointing out that it is likely a rust specific issue.

mbrc12 avatar Nov 29 '23 08:11 mbrc12

It is about completion menu with documentation window issue. So I think it is similar. And it is for rust.

Shougo avatar Nov 29 '23 09:11 Shougo

Closing, it was a mistake in configuration on my part. Seems to work perfectly.

mbrc12 avatar Dec 01 '23 00:12 mbrc12