Skip to content

Instantly share code, notes, and snippets.

@timmyha
Created September 14, 2023 10:56
Show Gist options
  • Select an option

  • Save timmyha/b611a8e34a4f8d13cb52ae755dbfef2c to your computer and use it in GitHub Desktop.

Select an option

Save timmyha/b611a8e34a4f8d13cb52ae755dbfef2c to your computer and use it in GitHub Desktop.
apply border to cmp and diagnostic windows in neovim

for diagnostics:

vim.diagnostic.config {
  virtual_text = false,
  float = {
    header = false,
    border = 'rounded',
    focusable = true,
  },
}

for cmp

cmp.setup { 
  window = { 
    completion = cmp.config.window.bordered(), 
    documentation = cmp.config.window.bordered(), 
  },
}
@josepheiba
Copy link

Screenshot 2024-01-31 at 6 55 48 AM hi, if for example the borders were enabled by default, how can I remove them?

@ram-xv
Copy link

ram-xv commented Aug 25, 2024

Thanks !!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment