Skip to content

How to enable border in completion window #102

Answered by VonHeikemen
FahimAnayet asked this question in Q&A
Discussion options

You must be logged in to vote

This should work.

local lsp = require('lsp-zero')
lsp.preset('lsp-compe')

lsp.setup()

vim.opt.completeopt = {'menu', 'menuone', 'noselect'}

local cmp = require('cmp')
local cmp_config = lsp.defaults.cmp_config({
  window = {
    completion = cmp.config.window.bordered()
  }
})

cmp.setup(cmp_config)

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@FahimAnayet
Comment options

@josepheiba
Comment options

@VonHeikemen
Comment options

@josepheiba
Comment options

@josepheiba
Comment options

Answer selected by FahimAnayet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants