neoclide / coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Other
24.37k stars 956 forks source link

outline.autoWidth doesn't work #4864

Closed yimingwangdell closed 7 months ago

yimingwangdell commented 8 months ago

Result from CocInfo

Describe the bug

I cannot change width with "outline.autoWidth", and there is no "outline.Width" configuration. the only way to change width is modify outline.splitCommand, which is not obvious.

Reproduce the bug

We will close your issue when you don't provide minimal vimrc and we can't reproduce it

Screenshots (optional)

If applicable, add screenshots to help explain your problem.

fannheyward commented 8 months ago

The outline.autoWidth is used to increase window width to avoid wrapped line, only work for buffer contains more than 2 lines. Can you provide a screenshot for your case?

banyard-ibm commented 8 months ago

I was also having problems getting autoWidth working, when it was enabled my outline.splitComand value was being ignored. Checking the code I found autoWidth is bound by g:coc_max_treeview_width, in the end I just needed to increase this value.