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