neovimlanguage-server-protocolclangd

How to disable Preview popups from LSP server?


I use clangd as my LSP server and configure it with .clangd file. I don't use any additional LSP plugins. And every time I use the omnifunc on a function from any header except stdio.h and stdlib.h, it creates this annoying window:preview windows

Stackoverflow: Your post is mostly images. Add additional details to explain the problem and expected results.


Solution

  • The default value for completeopt option (list of options for Insert mode completion) is "menu,preview" (see :help completeopt).

    You could check your configuration for this option via verbose set completeopt?.

    To disable preview in this popup, configure this option without it: vim.opt.completeopt = { "menu" }