feat: make visible borders optional

This commit is contained in:
raf 2023-07-23 18:26:38 +03:00
commit 0951114a29
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
5 changed files with 23 additions and 2 deletions

View file

@ -192,12 +192,13 @@ in {
local cmp = require'cmp'
cmp.setup({
${optionalString (config.vim.ui.borders.enable) ''
-- explicitly enabled by setting ui.borders.enable = true
window = {
-- TODO: at some point, those need to be optional
-- but first nvim cmp module needs to be detached from "cfg.autocomplete"
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
},
''}
snippet = {
expand = function(args)