cmp is a pain

This commit is contained in:
Christoph J. Scherr 2024-07-04 16:06:22 +02:00
parent dc80c47b6a
commit 4014b7dd9d
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,3 @@
local cmp = require 'cmp' -- this is nvim-cmp
return {
{
'neovim/nvim-lspconfig',
@ -16,6 +15,9 @@ return {
-- used for completion, annotations and signatures of Neovim apis
{ 'folke/neodev.nvim', opts = {} },
},
config = function()
require 'custom.plugins.configs.lsp'
local cmp = require 'cmp' -- this is nvim-cmp
keys = {
{ '<C-k>', cmp.mapping.select_prev_item(), desc = 'Next completion' },
{ '<C-j>', cmp.mapping.select_next_item(), desc = 'Last completion' },
@ -58,8 +60,6 @@ return {
desc = 'Last completion',
},
},
config = function()
require 'custom.plugins.configs.lsp'
end,
},
-- See `:help gitsigns` to understand what the configuration keys do