cmp is a pain
This commit is contained in:
parent
dc80c47b6a
commit
4014b7dd9d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue