diff --git a/init.lua b/init.lua index 5857cec3..f09f810f 100644 --- a/init.lua +++ b/init.lua @@ -154,8 +154,6 @@ vim.opt.cursorline = true -- Minimal number of screen lines to keep above and below the cursor. vim.opt.scrolloff = 10 --- popup menu color -vim.opt.pumblend = 50 -- [[ Basic Keymaps ]] -- See `:help vim.keymap.set()` @@ -666,6 +664,7 @@ require('lazy').setup({ { -- Autocompletion 'hrsh7th/nvim-cmp', + event = 'InsertEnter', dependencies = { -- Snippet Engine & its associated nvim-cmp source @@ -713,7 +712,16 @@ require('lazy').setup({ end, }, completion = { completeopt = 'menu,menuone,noinsert' }, + window = { + completion = cmp.config.window.bordered(), + documentation = cmp.config.window.bordered(), + }, + view = { + docs = { + auto_open = true, + }, + }, -- For an understanding of why these mappings were -- chosen, you will need to read `:help ins-completion` --