vim-lsp-settings icon indicating copy to clipboard operation
vim-lsp-settings copied to clipboard

Configuration to remove border from popup

Open AdityaMayukhSom opened this issue 1 year ago • 1 comments

I want to remove the border from the pop up for documentation. Is there any existing configurations which can modify this behavior?

Image

AdityaMayukhSom avatar Jan 28 '25 20:01 AdityaMayukhSom

@AdityaMayukhSom Unfortunately, there is no direct setting. You can remove the border of the signature only when it pops up as follows:

vim9script

def PopupOpened(): void
  const popups = popup_list()
  const options = popups[0]->popup_getoptions()
  # hide signature help border
  if !options->has_key('borderchars')
    popups->popup_setoptions({
      borderchars: [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
    })
  endif
enddef

autocmd User lsp_float_opened call PopupOpened()
Image

heavenshell avatar Oct 11 '25 14:10 heavenshell