hrsh7th / nvim-cmp

A completion plugin for neovim coded in Lua.
MIT License
7.47k stars 370 forks source link

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

Closed mbrc12 closed 7 months ago

mbrc12 commented 7 months ago

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

Shougo commented 7 months ago

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

mbrc12 commented 7 months ago

@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.

Shougo commented 7 months ago

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

mbrc12 commented 7 months ago

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