Nvim-lspconfig: PYLS opening preview window

Created on 22 Jun 2020  路  5Comments  路  Source: neovim/nvim-lspconfig

  • nvim --version: v0.5.0-21453e8f0
  • nvim-lsp version(commit hash): a82ce0e
  • What language server(If the problem is related to a specific language server): pyls 0.1.6
  • Operating system/version: MacOS 15.15.5
  • Terminal name/version: iTerm nightly
  • $TERM: 256

How to reproduce the problem from neovim startup

With pyls and either deoplete LSP or another completion library NeoVim's intent on opening a preview window but only with pyls AFAIK.

Actual behaviour

Preview window with completion.

Expected behaviour

Not opening unwanted preview windows.

bug

All 5 comments

Don't know why this wasn't happening with other LSPs but set completeopt-=preview stopped the preview window opening.

To add to that, this has the annoying behaviour if you accidently close your main window, and your preview window is the only one left, it will cause issues.

Because then you will habitually try to switch buffer in the preview window, but then since it's still the preview window, when the preview inevitably updates, it will destory whatever work you have done.

This is not at all easy to figure out, and really seems like a bug.

This is bug? Really?
I don't think so.

Thought it might be a bug when I raised but, like I said, it seems to be intended behaviour and the above setting stops it happening.

Closing this issue, any improvements can be raised in a new issue.

I think this is feature. Other omnifunc sets preview window information.
And you can disable preview window feature by completeopt.
So no problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

teto picture teto  路  10Comments

mjlbach picture mjlbach  路  8Comments

justinmk picture justinmk  路  8Comments

ahmedelgabri picture ahmedelgabri  路  4Comments

jacksonludwig picture jacksonludwig  路  11Comments